Cannot enable Hyper-V service with Docker in windows 10

11,908

Solution 1

You need to autostart the hypervisor at startup.

Open a Powershell as Admin. Paste the line:

bcdedit /set hypervisorlaunchtype auto

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/

Solution 2

In my case this worked for me More concrete steps:

got to ‘Apps and Features. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Unselect Hyper-V and click OK. (So I disable it) Restart computer

After restart I go to: ‘Apps and Features. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. select Hyper-V and click OK. (So I enable it) Computer restart

After restart, then docker worked correctly.

Share:
11,908
Osama Mohammed
Author by

Osama Mohammed

Updated on July 17, 2022

Comments

  • Osama Mohammed
    Osama Mohammed almost 2 years

    i have already enabled virtualization in my BIOS, and also enable it in Windows feature enter image description here

    furthermore, the android emulator with android studio 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?