After the installation and the enforced reboot of my machine, Docker Desktop for Windows did not bother to start. I got the Docker command line application in the Command Prompt, but the hello-world example ended with an error:
1 |
docker run hello-world |
docker: error during connect: This error may indicate that the docker daemon is not running.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.
See ‘docker run –help’.
If you run into this problem, do not waste as much time as I did and redo the installation:
- Remove Docker in “Add or remove programs”
- Restart your computer
- Install Docker as Administrator (and not by running the installer directly)
If the installer asks for a reboot, do it. Docker Desktop for Windows should now start as expected and run your containers.
Any hints of how to install Docker as Administrator (and not by running the installer directly) ? Please?
Right-click on the Installer, then click on “run as administrator“ should do the trick.
Will this work if I am a standard user?
Hi qwerty,
No, you need to have additional rights to run a program as administrator. Right-click on the installer and check if you get the entry “run as administrator”.
Regards,
Johnny
I did this, but it still doesn’t work for me… what else should I do?
Note: When I installed it as an administrator, it didn’t ask me to reboot. Not sure if that gives you more insight or not.
Hi Drew,
Can you please check if you installed Docker Desktop 4.5? It looks as if this version was released on Friday and had some massive problems. With the direct link I still find the blog post (https://www.docker.com/blog/new-docker-menu-improved-release-highlights-with-docker-desktop-4-5/) but it is no longer on the blog overview.
If you get the problem with Docker Desktop 4.4.4 I suggest you restart your machine anyway.
Regards,
Johnny
Install doing the same steps above and seems to run into this issue. Ran it as administrator and still having same issue. Any other suggestions?
Hi Churk,
Did you try Docker Desktop 4.5.1 for Windows? This version works for me, while 4.5.0 did not work at all.
Regards,
Johnny
Thank you veeeeery much!!! 4.4.4 worked for me
Thanks a lot, this (downgrading version) worked for me as well.
I was getting the same error. Your solution worked for me.
Thanks.
Amarja
Isto funcionou perdeitamente pra mim. Muito obrigado, acompanhando a partir de Angola – Luanda.
Thank you!!! Worked for me 🙂
i had it running on windows server 2022 and it was working great but one day had a blue screen and now the docket desktop will not start, i have run it as admin, uninstall it, delete all docker files.
This is the 3rd time installing it after uninstalling and still won’t start, i have started the sever nothing still, i think clean install of windows is the only way
Hi Adam,
I think the clean install is a valid option after everything you tried. The only thing I could suggest is to try version 4.5.1. If this does not work then reinstall your server seams to be the only option.
Regards,
Johnny
I installed “Docker Desktop” using DockerDesktop_win-4.4.3.exe with “Install required Window components for WSL 2.
“Docker Desktop” not getting started automatically when I am starting/restarting the laptop .
Also getting the “Docker Failed to Initialize” error when trying to start it manually.
Hi Rajiv,
Did you run the installer as an administrator or as your regular user? It sounds like a permission problem.
Regards,
Johnny
4.5.1, installed a couple of times, as admin, restarted, no luck …
Agreed – same problem here. Was working after remove, restart, reinstall as admin, but had to do this _every time I rebooted_! However, now just failing to start completely!
thanks a lot.
I tried several version and restarted a lot of times. The only thing which helped is to remove:
C:\Users[USER]\AppData\Local\Docker
C:\Users[USER]\AppData\Roaming\Docker
C:\Users[USER]\AppData\Roaming\Docker Desktop
Have a look at this post:
https://forums.docker.com/t/docker-failed-to-initialize/111341/22
It explains that the ‘%path%/AppData/Roaming/Docker/settings.json’
file has wrong values.
So remove this file or adjust the values.