我在Windows 10上用https://docs.docker.com/docker-for-windows/install/#install-docker-for-windows安装docker。它不使用VirtualBox和默认VM来托管Docker。用ssh连接到windows上的docker守护进程
我能运行容器,但我怎么连接到一个码头与SSH?
docker-machine ls
不显示我的码头主机。
试图连接到[email protected],但它需要密码。而tcuser
是用于boot2docker VM不匹配
ssh [email protected]
Could not create directory '/home/stan/.ssh'.
The authenticity of host '10.0.75.1 (10.0.75.1)' can't be established.
RSA key fingerprint is ....
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/stan/.ssh/known_hosts).
[email protected]'s password:
Write failed: Connection reset by peer
Hi @Stan B!你的具体用例是什么?也就是说,你想通过SSH连接做什么?可能有另一种方法来做你想做的事情。乐于帮助,只需要更多的信息:)干杯, –
我正在学习码头内部。我想看看在容器中运行的进程,并找到在主机上运行的相关进程。我想访问/ var/lib/docker/aufs来查看图像和容器文件系统。我有两个环境。一个人在家里与虚拟机和我成功做一切,码头机显示默认的机器,我可以连接到它与SSH。第二个是与直接安装在带有hyper-v的windows上的docker引擎一起工作。 docker命令有效,但我如何访问引擎内部的文件和进程? –
我认为线程@nhol链接是你最好的选择。尤其是,Ailurarctos在那里的答案对我来说听起来很合理。如果你有更多的问题,可能会在那边碰到话题? –