Meet Moby in Docker for Mac

When using docker-machine to create a Docker host, it’s very easy to ssh onto the host and play with it.

docker-machine ssh HOSTNAME

When you are using Docker for Mac (like I am), there is no such ssh command out of the box, so… supposed you need to log into the VM that is running on your MAC, how are you supposed to do it ?

Enters Moby ! Screen inside the correct tty and here we go.

screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

To login use root account without password.


We end up on an Alpine linux running Docker with all the Docker stuff installed in /var/lib/docker.


Note: do not open several tty using the previous command or you’ll get in serious trouble… (or do it if you are aventurous… but you’ve been warned 😉 ).

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *