I am trying to stop, start and restart com.docker.service from Windows PowerShell as admin,
PS C:\Windows\system32> net stop com.docker.service
The Docker for Windows Service service is stopping.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
The Docker for Windows Service service was stopped successfully.
PS C:\Windows\system32> net start com.docker.service
The Docker for Windows Service service is starting.
The Docker for Windows Service service was started successfully.
PS C:\Windows\system32> docker ps
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/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 ma
y also indicate that the docker daemon is not running.
PS C:\Windows\system32>
Does anyone know the correct way to restart Docker as a service on Windows 10? Thanks
Docker Quickstart Terminal comes with Docker Toolbox. Docker toolbox is for older PCs , the latest ones need âDocker for windowsâ which does not have the Docker Quickstart Terminal. Also, the services show that docker is running, and so does ânet start com.docker.serviceâ. But still there is the following error while running docker commands:
âerror during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.32/images/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.â
I am using Windows 10 Pro N 1803 VM running in Azure. After I restarted com.docker.service, I got the exactly same error message. I tried to use Docker GUI to restart docker, but it doesnât help. Finally I figured out there are 2 ways to get back Docker to normal.
Solutions #1 Use Docker GUI to quit docker first; then just run âDocker for Windows.exeâ. #2 Use Docker GUI to reset docker.
Is there possible I can call quit or reset docker from Command Line? I am being blocked for 2 weeks, your help is much appreciated.
I would dearly love to know if anybody figured out a way to do this. Iâm perfectly able to ârestart-service com.docker.serviceâ, or ânet stop com.docker.serviceâ and ânet start com.docker.serviceâ. However, doing this never ever results in a usable docker again until doing a restart from the gui.
I note that using the services app results in the same behavior. If you stop âDocker desktopâ there and then start it again, you end up with broken docker. Permanently. Although the gui widget is still running and says everything is fine.
I use Windows containers for my development efforts.
I just updated to 2.0.0.3 and hit the same issue.
How I solved it
First I had to delete the âdaemon.jsonâ file in âC:\ProgramData\Docker\configâ - it seems to have been corrupted by the update. Donât even try to set ACLs on that file.
Then, I opened the âDocker of Windowsâ UI from the system tray and I switched to Linux containers.
This will start the MobyLinuxVM in your local Hyper-V.
Check the status of the Docker startup in the âDocker of Windowsâ UI - it will go from orange to green.
Once the switch-over is done, switch back to Windows containers.
After the running status is green again, do a âdocker versionâ from the command line and you should be golden.
Remember to stop the MobyLinuxVM in your Hyper-V manager.
Hello Michael GUI, simply means General User Interface, if you are using docker desktop, just go to settings and a change maybe the light, then you will seen two buttons by your right down corner click on Apply & restart.