Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Created December 12, 2018 12:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rmetzler/38cbefcd898d3274d7bf916106f5b497 to your computer and use it in GitHub Desktop.
Save rmetzler/38cbefcd898d3274d7bf916106f5b497 to your computer and use it in GitHub Desktop.
SSH into Docker for Mac xhyve VM
1. screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
2. when done use CTRL-A CTRL-\ and then y (for yes) to exit
Alternative method:
1. docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh
@rmetzger
Copy link

rmetzger commented Dec 4, 2019

Command was screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty for me

@michal-kocarek
Copy link

If it stopped working fo you recently, check this thread: https://gist.github.com/BretFisher/5e1a0c7bcca4c735e716abf62afad389#gistcomment-3443088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment