How to ssh into docker-machine VirtualBox instance?

后端 未结 7 1991
萌比男神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条回答
  •  Happy的楠姐
    2020-12-22 17:45

    You can log into docker-machine hosts by just running

    docker-machine ssh default
    

    (Using the "default" host here)

    The identity files should be stored under ~/.docker/machine/machines. If you want to log into a container (as opposed to the host), use docker exec as suggested by user2915097.

提交回复
热议问题