From the course: Docker for Windows
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Enabling Hyper-V containers - Docker Tutorial
From the course: Docker for Windows
Enabling Hyper-V containers
- [Instructor] We enabled Docker on Windows using Windows Containers, but there is a feature of Docker on Windows Server called Hyper-V Containers that provides container isolation. Now, this is different from using Hyper-V in Docker for Windows on a Windows 10 desktop or laptop, where you're running the Mobilinux Virtual Machine, so that you can run Linux Containers. With this feature in Windows Server, you're actually still running Windows Containers, but those Windows Containers are then run inside a Hyper-V Virtual Machine. So, let me show you how this works. If we go here to PowerShell and we perform this command, which is a docker run minus it for an interactive terminal, and then using this flag here, dash dash isolation equals hyperv, and then run the nanoserver image with the command at the end, we get this error. It says no hypervisor is present on this system. So, how do we get a hypervisor on this Windows Server? Well, let's go down here and let's type in turn on, Windows…