Getting a Shell in the Docker for Windows Moby VM

Mar 11, 2018

<<BRET this is in Ghost as Markdown text with embedded javascript. I just pasted here as code. >>

When using [Docker for Windows](https://docs.docker.com/docker-for-windows/), you're actually using a tiny (custom) [LinuxKit Linux](https://github.com/linuxkit/linuxkit) running in a special Hyper-V VM. There's so much cool stuff happening, you're meant to forget it's still running on a Linux kernel. **Note this is about the default "Linux Containers" mode. It doesn't yet work for "Windows Containers" mode.** This is just a container that will have access to the Linux VM so you can do things like `ps aux` to see daemons running in the VM. It's not a full OS and I rarely have a reason to do this, but I get asked how to do it, so here ya go. Copy/paste from below or [star my Gist here](https://gist.github.com/BretFisher/ef4070b60ca7380846ff62f3cebd7856).

Bret's container and DevOps learnings, in your inbox!

Join my newsletter for weekly-ish updates on content I'm creating: videos, articles, events, courses and more.