How to ssh into docker-machine VirtualBox instance?

后端 未结 7 1954
萌比男神i
萌比男神i 2020-12-22 16:57

docker-machine version 0.2.0 docker version 1.6.2

I\'m using docker-machine to create a machine using VirtualBox. Everything works fine but I\'d like to ssh into th

7条回答
  •  囚心锁ツ
    2020-12-22 17:42

    Finally, I found an answer :

    I'm on Windows with Docker Toolbox (Docker Machine).

    If I docker-machine -D ssh default, I find that the SSH parameters should be :

    Host : localhost
    Port : 51701
    User : docker
    Key : .docker\machine\machines\default\id_rsa

    When I change my Putty/MobaXterm settings to match, voila, I can SSH into the container.

提交回复
热议问题