Docker for Windows cannot start: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”

To start Docker on Windows, Hyper-V and the Hypervisor has to be enabled on Windows.

  1. Start a PowerShell window as administrator
  2. Enable Hyper-V
    dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
  3. Enable the Hypervisor
    bcdedit /set hypervisorlaunchtype auto
  4. Restart the computer

Join the Conversation

4 Comments

  1. PS C:\WINDOWS\system32> dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.329

    Image Version: 10.0.19041.450

    Error: 0x800f080c

    Feature name Microsoft-Hyper-V is unknown.
    A Windows feature name was not recognized.
    Use the /Get-Features option to find the name of the feature in the image and try the command again.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    1. Hyper V feature isn’t in Windows Home but in Windows Pro version, so if you have Home installed HyperV will not be recognized as a feature.

Leave a comment

Leave a Reply