Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

@techiechap

This comment has been minimized.

techiechap commented Dec 3, 2018

      When tried to run on the wsl /git bash "the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment