Downloading, installing, and running Docker isn’t that hard. But in some cases, you have Hyper-V and want to run Docker in there. Running Docker in Hyper-V isn’t really hard when you know how to do it. It all comes to configuration and enabling virtualization on the Hyper-V virtual machine.
A short tutorial about how you can make Docker run in Hyper-V. I needed it a while back when teaching people about Docker. I couldn’t reinstall it on my own machine, because I already have some containers running.
Starting Situation
For this tutorial, I have Hyper-V installed and I also have a Windows 10 virtual machine running in Hyper-V. That virtual Windows is fully installed and running with a user. I can log in and browse the Internet if needed.
It’s a simple machine, nothing fancy. You do need to have some memory. I would advise 4Gb or more for Docker to run.
The host Windows and the machine have virtualization enabled. This makes it possible for Docker to run. A virtual machine doesn’t have this enabled, nor does it have this setting.
