How to ssh into docker-machine VirtualBox instance?

后端 未结 7 1987
萌比男神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:37

    If for some reason you'd rather use the ssh command rather than docker-machine ssh, you can do

    ssh `docker-machine ip machine_name` -ldocker -i ~/.docker/machine/machines/machine_name/id_rsa
    

提交回复
热议问题