Cannot enable Hyper-V service with Docker in windows 10 [closed]
Asked Answered
J

4

13

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.

Jassy answered 26/6, 2020 at 10:27 Comment(2)
Try to restart your machine.Otolaryngology
i tried that a lotJassy
B
29

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/

Blueness answered 26/6, 2020 at 13:52 Comment(2)
it is work, thanks, but i encounter another problem : Docker.Core.HttpBadResponseException: Unhandled exception: Operation failed with result 4096 at Docker.Core.Logging.ClientExceptionInterceptor.<InterceptResponseAsync>d__0.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Logging\ClientExceptionInterceptor.cs:line ...........Jassy
Sorry I'm not that docker pro but there are some Google hitsBlueness
M
4

Just re-enable Hyper-V.

Concrete steps:

  • Go to Apps & features.
  • Select Programs and Features on the right under Related settings.
  • Select Turn Windows features on or off.
  • Deselect Hyper-V, and click OK. (This disables Hyper-V).
  • Restart the computer.

After restart,

  • Go to Apps & features.
  • Select Programs and Features on the right under Related settings.
  • Select Turn Windows features on or off.
  • Select Hyper-V, and click OK. (This enables Hyper-V).
  • Restart the computer.

After restart, docker worked correctly.

Myongmyopia answered 31/8, 2021 at 4:55 Comment(0)
C
0

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

Coleville answered 16/9, 2021 at 13:53 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Kimsey
S
0

I tried both options described here without success:

  1. Unchecked Hyper-V in Windows feature(reboot), checked again(reboot)
  2. Run bcdedit /set hypervisorlaunchtype auto as Administrator in Powershell and reboot the PC

SOLUTION: What solved the issue for me was to update the Docker Desktop version (from 3.6 to 4.3)

Standridge answered 15/12, 2021 at 14:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.