Is there a way to go into the docker host?

I would like to login / ssh to the host that is running the docker daemon.

Do I have a tool similar to docker-machine ssh?

To access the VM use,


‘…’ is your user-id.


You can make that

Ready to be copy-pasted by anyone :wink:

This works, but what are the login credentials for the moby vm?

User: root

Yep, that works. Thanks Alex!

When I do this, I just get a hung terminal that won’t accept any input. Any ideas?

The issue was that I was already in tmux and was trying to also use screen which was causing all kinds of issues. Sorry for the noise.

I want to run a script inside the docker host. So I’m looking for an ssh equivalent rather than screen.
Any suggestions?

When I try to execute:


it returns: Permission denied

you forgot to add screen to the beginning of the path to a tty, it’s not a command.

1 Like