
Waiting for machine to be running, this may take a few minutes.ĭetecting operating system of created instance.Ĭopying certs to the local machine directory. (Boot2Docker) Using switch "Intel(R) Ethernet Connection I217-LM Virtual Switch" (Boot2Docker) Copying C:\Users\rob.prouse\.docker\machine\cache\boot2docker.iso to C:\Users\rob.prouse\.docker\machine\machines\Boot2Docker\boot2docker.iso. Ω docker-machine create -driver hyperv -hyperv-virtual-switch "Intel(R) Ethernet Connection I217-LM Virtual Switch" Boot2DockerĬreating CA: C:\Users\rob.prouse\.docker\machine\certs\ca.pemĬreating client certificate: C:\Users\rob.prouse\.docker\machine\certs\cert.pem See the Docker Hyper-V documentation for more command line options. In this example, the Hyper-V machine will be called Boot2Docker.

Open an Admin command prompt and run docker-machine create, substituting your virtual switch name. Copy the name of the switch, you will use it when you create the virtual machine. Select a Virtual Switch that is connected directly to an external network interface, ideally to an ethernet connection, not to a wireless card. You must specify which Virtual Switch to use when you create the Docker VM, so open Hyper-V Manager and select Virtual Switch Manager from the actions on the right.

If you have many virtual machines in Hyper-V, you will likely have several Virtual Switches.
DOCKER DESKTOP HYPER V INSTALL
We will install the Docker vm into Hyper-V manually. The Docker Quickstart Terminal and Kitematic (Alpha) shortcuts won't work without VirtualBox, so skip them. Clicking Don't Install will abort the VirtualBox install. A Windows Security dialog will pop up asking you if you want to install Oracle device software. On the fourth screen, select all options, then continue to click through all of the screens.Īt the end of the Docker Toolbox install, it will begin installing VirtualBox. Damn you Docker! No worries, we can get around that. On the third screen, you cannot uncheck VirtualBox even though you don't need it. We're all Windows developers here, so I will assume that you are already using Hyper-V and that it is working. It turns out that it isn't difficult, but most of the instructions assume VirtualBox or are out of date.
DOCKER DESKTOP HYPER V HOW TO
In the past, I would dual boot to switch between Hyper-V and VirtualBox, but that is a huge pain, so I decided to figure out how to get Docker running in Hyper-V. As a Windows developer, all of my virtual machines and emulators are Hyper-V images which conflicts with VirtualBox. On Windows, Docker runs inside a virtual machine and by default ships with VirtualBox. Containers are the future, so I need to be able to work with Docker.
