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
?
Share and learn in the Docker community.
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,
screen
/Users/…/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
‘…’ is your user-id.
You can make that
${HOME}/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Ready to be copy-pasted by anyone
This works, but what are the login credentials for the moby vm?
User: root
Password:
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:
${HOME}/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
it returns: Permission denied
you forgot to add screen
to the beginning of the path to a tty, it’s not a command.