简体   繁体   中英

Cannot enable Hyper-V service with Docker in windows 10

i have already enabled virtualization in my BIOS, and also enable it in Windows feature在此处输入图像描述

furthermore, the android emulator with android studio working well, but when i try to run Docker for windows, i encounter this problem? 在此处输入图像描述

i don't know where the problem is?

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/

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.

What worked for my team was to make sure Containers and Hyper-V was enabled, then making sure Docker Desktop was updated.

Here are the steps which I did and it works for me:

  1. Validate that Hyper-V is checked in Windows feature 在此处输入图像描述
  2. Ensure the hyper-v is enabled in your BIOS
  3. Run bcdedit /set hypervisorlaunchtype auto as Administrator in Powershell and reboot the PC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM