Skip to content

Instantly share code, notes, and snippets.

@carmenlau
Created October 24, 2018 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmenlau/642429010e218eb0c37d5c2d0ec03aca to your computer and use it in GitHub Desktop.
Save carmenlau/642429010e218eb0c37d5c2d0ec03aca 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment