Skip to main content

Windows Pro Shows "cannot enable Hyper-V service" When Installing Docker

Prerequisites:

    1. Virtualization is already enabled on the computer image.png
    1. Other virtual machine software has been uninstalled (VirtualBox, VMware)
    1. All steps from Microsoft's documentation have been tried Install Hyper-V on Windows 10
    1. However, the HV Host Service cannot be started in Services image.png

Solution

Open "Programs and Features" in Control Panel

image.png

Uncheck Hyper-V

image.png

Restart the Computer

Although HV has been uninstalled, there may be residual services. Open Services again and try to start the HV Host Service. If it can start, or if the HV service no longer exists, you're good to go.

Install HV via Command Line

Right-click the Start Menu

image.png

Install via Command Line as Administrator

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

image.png Then restart the computer and open the HV service.

Start Docker

When starting Docker, you may see an error. Simply reinstall Docker to resolve it.