Search code examples
dockervirtualizationhyper-v

Cannot enable Hyper-V service with Docker in windows 10


I have already enabled virtualization in my BIOS, and also enabled it in Windows features

enter image description here

Furthermore, the Android emulator with Android Studio is working well, but when I try to run Docker for Windows, I encounter this problem:

enter image description here

I don't know where the problem is.


Solution

  • You need to autostart the hypervisor at startup.

    Open a Powershell as Admin (right-click Powershell, click "Run as administrator").
    Paste the line:

    bcdedit /set hypervisorlaunchtype auto
    

    enter image description here

    "bcd" stands for Boot Configuration Data, to set it to automatically launch hypervisor. Then the hypervisor will start at the next boot and it should work.

    For future information see: https://d3v.one/windows-10-changing-hyper-v-support-at-boot-time/