Reputation: 775
I was getting bellow error while trying to start Docker Desktop on Windows 10.
Unable to stop - The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Service 'Hyper-V Host Compute Service (vmcompute)' cannot be started due to the following error: Cannot start service vmcompute on computer '.'.
Upvotes: 2
Views: 24255
Reputation: 11
On the docker icon, right click and click trobleshoot. Click on "Reset to factory defaults",
Upvotes: -2
Reputation: 131
This is a known issue .
"Hyper-V Host Compute Service" does not start after updating Windows 10 with latest security patches and this caused docker start failures after reboot.
Try out the steps mentioned below-
-
Open "Window Security"
"App & Browser control"
Click "Exploit protection settings" at the bottom
Switch to "Program settings" tab
Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
Click "Edit"
Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
Start vmcompute from powershell "net start vmcompute"
Upvotes: 2
Reputation: 775
Follow the steps (1-8) mentioned in the answer for this question.
Hope this helps!
-Kunal
Upvotes: 3