How to disable or enable Hyper-V on Windows 10 when using Docker and VirtualBox

Docker depends on Microsoft’s Hyper-V virtualization technology. VirtualBox doesn’t. So there are two ways to accomplish that task.

Note: Either of the approaches requires restart of the machine!

1. Using GUI

Find „Turn Windows features on or off“ in the start menu (directly type it in):
Turn Windows feature on or off dialog screenshot
and check/uncheck the „Hyper-V“ boxes depending on whether you want it enabled or disabled.

2. Using Windows PowerShell (required elevated privileges)

To enable use:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

and confirm when prompted.

To disable use:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

and confirm when prompted.

3. Alter boot configuration data (not tested on Windows 10)

You can read this article by Scott Hanselman targeting windows 8 on an approach if you need to switch you configuration on daily basis.

At the time of this writing
Docker is: v17.03 (community edition)
VirtualBox is: v5.1


Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *