docker desktop - windows hypervisor is not
时间: 2023-09-26 17:13:18 浏览: 130
Docker Desktop for Windows requires the Windows Hypervisor Platform (WHPX) to be enabled in order to run properly. To enable the Windows Hypervisor Platform, you can follow these steps:
1. Open the Control Panel and navigate to "Programs" and then "Turn Windows features on or off".
2. Check the box next to "Hyper-V" and click "OK" to enable the feature.
Alternatively, if you prefer using a command-line approach, you can create a new text file on your desktop and change its extension to ".bat" or ".cmd". Then, copy and paste the following code into the file:
```
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
```
Save the file and double-click it to run the script. This will enable the necessary Hyper-V components for Docker Desktop on your Windows system.
After enabling the Windows Hypervisor Platform, you should be able to run Docker Desktop without encountering the "docker desktop - windows hypervisor is not found" error.
阅读全文