Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to start docker on Win 10 Enterprise #3440
Expected: Docker should start when I switch to Linux containers
Actual: Docker stops with below error
Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'AP-PUN-LP4283' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running.
I followed below steps as a workaround.
A. Solve Hyper-V CFG issue
2, Open "App & Browser control"
3, Click "Exploit protection settings" at the bottom
4, Switch to "Program settings" tab
5, Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
6, Click "Edit"
7, Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
8, Start vmcompute from powershell "net start vmcompute"
B. Run powershell command MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
Then I got below error which I resolved by restarting the Docker.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.38/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.