Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save surgicalcoder/ef636d62a368df536a8d7397bc9c594b to your computer and use it in GitHub Desktop.

Select an option

Save surgicalcoder/ef636d62a368df536a8d7397bc9c594b to your computer and use it in GitHub Desktop.
Getting a Shell in the Docker for Windows Moby VM

2018 Update: Easiest option is Justin's repo and image

Just run this from your CLI and it'll drop you in a container with full permissions on the Moby VM. Only works for Moby Linux VM (doesn't work for Windows Containers). Note this also works on Docker for Mac.

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1

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