-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Description
docker cli use ssh is great, especially when use ssh logon free.
There is a small issue, when use ssh with password, docker run -it will fail.
Steps to reproduce the issue:
- docker -H ssh://localhost run --name=testssh -it docker.acmcoder.com/public/ubuntu:ssh
Describe the results you received:
root@localhost's password:
root@localhost's password:
root@localhost's password:
root@localhost's password:
root@localhost's password:
build/docker: error during connect: Post http://docker/v1.39/containers/6a7570cba6aac7b812df5665f077490c614917933c39c450954079e4d5fe6649/start: command [ssh localhost -- docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
ERRO[0015] error waiting for container: context canceled
WARN[0015] commandConn.CloseWrite: connhelper: failed to wait: signal: killed
Describe the results you expected:
root@localhost's password:
root@localhost's password:
root@localhost's password:
root@25eaf3b846dc:/#
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client:
Version: unknown-version(this code is from master)
API version: 1.39
Go version: devel +30c1ed7 Sat Oct 6 00:02:35 2018 +0000
Git commit:
Built: Tue Oct 23 03:38:45 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: dev
API version: 1.39 (minimum version 1.12)
Go version: go1.11.1
Git commit: 5d82d77
Built: Wed Oct 17 03:39:36 2018
OS/Arch: linux/amd64
Experimental: true
Output of docker info:
Additional environment details (AWS, VirtualBox, physical, etc.):
Aliyun cloud