Solve the problem of Docker startup failure, Docker Desktop is unable to detect a Hypervisor.

 1. Confirm whether Hyper-V is enabled

Win11: Enter Control Panel -> Programs -> Enable or disable Windows features -> check Hyper-V

 2. If you can’t find Hyper-V: Windows automatically hides this function, set to enable hyper-v.

Create a new Notepad file on the desktop, change its suffix to cmd or bat, and copy the following code

pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt

for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

Then, right-click and select: Run as administrator. After the code is executed, restart the computer.

3. If you see that Hyper-V has been turned on, it still cannot start

The administrator runs cmd input, and then restarts the computer

bcdedit /set hypervisorlaunchtype auto

4. Success! ! !

Guess you like

Origin blog.csdn.net/weixin_47190898/article/details/131060441