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.
Hello,
I am using Docker Desktop for Windows and I start Docker Containers from our C# Aspire application. That works sometimes as expected, and even more often I receive the error message in my applications console:
“Container runtime ‘docker’ could not be found. The error from the container runtime check was: Timed out while checking Docker status; Docker CLI is not responsive…”
Opening a separate console and invoking “docker info” I have to wait for about 45 seconds, until I get an output.
Rebooting my Windows 11 system does not solve the problem. I have Docker Desktop 4.37.1 (178610).
Suddenly everythink works and then it stops working again.
In the “General” settings I changed the property “Font size” to enable the “Apply & restart” button, but that seems to have no effect.
Any idea, what I can try else to get Docker into a stable state?
Thanks