Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start docker on windows

I continue to get the following error when trying to start docker on Windows 10 pro. my HyperV is turned on and running: Version 18.04.0-ce-win62 (17151) Channel: edge e0a85f6

Any help would be appreciated!

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 'C001715587' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running. at New-Switch, : line 117 at , : line 394 at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36 at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 75 at Docker.Actions.<>c__DisplayClass15_0.b__0() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 59 at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59

like image 947
user1116536 Avatar asked May 02 '18 02:05

user1116536


2 Answers

Try this. It's sorting the problem of many people.

cd "C:\Program Files\Docker\Docker" 
./DockerCli.exe -SwitchDaemon
like image 62
Tejashree Avatar answered Sep 19 '22 04:09

Tejashree


You may need to fix your "Control Flow Guard" settings for vmcompute.

(Be aware that CFG is an exploit-protection mechanism, so pay attention when changing it and understand why it exists.)

  1. Open Windows Security

  2. Open App & Browser control

  3. Click Exploit protection settings

  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 Control flow guard (CFG) and uncheck Override system settings

  8. Start vmcompute from powershell net start vmcompute (or alternately start the Hyper-V Host Compute Service from the system Services app)

  9. Restart PC

  10. Open Hyper-V as Administrator

  11. Connect to Server, Local computer, OK

The above worked for me when I couldn't run docker, then I realized I couldn't connect to my local machine on hyper-v. This is what finally worked.

like image 45
J.D Avatar answered Sep 22 '22 04:09

J.D