This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).ĭocker run -it -rm -privileged -pid=host justincormack/nsenter1 Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM.
2021 Update: Easiest option is Justin's repo and image