windows安装的dockertools
默认地址是192.168.99.100
![](https://img.haomeiwen.com/i10400814/331e2bf04cfd96de.png)
用户名为:docker 密码tcuser
进入的是virtualbox模拟出来的虚拟机,所以记得先打开虚拟机。
远程连接docker,
![](https://img.haomeiwen.com/i10400814/6f2eb3990f80be87.png)
![](https://img.haomeiwen.com/i10400814/1000f5ff472ca477.png)
主机端口为宿主机的端口,子系统端口为虚拟机端口。
想要ssh docker中的容器,需要先将容器的端口映射到虚拟机端口,再从虚拟机机映射到宿主端口。
windows安装的dockertools
默认地址是192.168.99.100
用户名为:docker 密码tcuser
进入的是virtualbox模拟出来的虚拟机,所以记得先打开虚拟机。
远程连接docker,
主机端口为宿主机的端口,子系统端口为虚拟机端口。
想要ssh docker中的容器,需要先将容器的端口映射到虚拟机端口,再从虚拟机机映射到宿主端口。
本文标题:ssh连接windows中的dockerserver
本文链接:https://www.haomeiwen.com/subject/datgxftx.html
网友评论