Docker stuck on starting

before i lauch docker but stuck on the starting.
OS Windows 11 21H2
Docker 4.9.0
i try

wsl --unregister docker-desktop
wsl --unregister docker-desktop-data

still stuck on docker starting…

I’m guessing you saw this thread: Docker forever in "Docker is starting.." at Windows task - Stack Overflow

When I got this problem a complete shutdown and restart fixed it (as someone mentioned in the stack overflow thread, you need a complete shutdown rather than just restart).

2 Likes

i also got problem docker is shutting down after while…

Hi,

I had the same issue. Below is how I resolved my it:

  1. Uninstall Docker
  2. Restart your machine
  3. Install a linux WLS distro
    a. Check available linux distros available : wsl --list --online
    b. Choose the one you want (I chose Ubuntu, the 1st option) : wsl --install -d {DISTRO-NAME} e.g. wsl --install -d Ubuntu
    c. You might get an error about a missing WLS update while installing, go on google with the error and you will find the link to the installation of that update.
  4. Install Docker (Docker Desktop Installer.exe
9 Likes

this solution worked for me, thank you!

1 Like

Thanks for the solution, it helped me a lot!

1 Like

I was able to resolve the issue by simply running Docker Desktop as an administrator

4 Likes

This all in the list useless. Don’t start. I even can’t exit in a win tray menu.

MAY BE ANY LOG IN THAT SYSTEM WITH SOME INFO, or we have to ask any stupid thing here?

1 Like

I am using Windows 11, i am getting Docker desktop starting issue

When I checked the logs,

Previously I got this error - The system cannot find the file specified

Then I uninstalled the docker latest version 4.16.2 and installed 4.15.0 version

Now I am getting the below error in logs

com.docker.backend.exe.log file already closed

Uninstalled and installed the docker and deleted the files in the roaming folder and executed the below commands

wsl --unregister docker-desktop
wsl --unregister docker-desktop-data

also executed the below commands in Windows PowerShell as administrator

Net stop com.docker.service
Net start com.docker.service

I think it is working fine in windows 10, mostly facing this error in windows 11, observed same error in another windows 11 system also.

1 Like

I am also getting the same Issue on windows 10, So I reverted back to 4.15.0 and it is working again

Thank you!
this worked for me. I definitely tried everything else, but when I reverted to an older version it helped. I had to update the WSL to version 2 and then restart, but after that I started docker and it worked after a few seconds. thanks again

Tried a bunch of solutions this video on youtube finally got me set up right.

2 Likes

Totaly worked for me. There was even no need of Docker uninstallation. I just updated my wsl to wsl 2 with update WSL2 Linux kernel update package from official web site. Then updated my ubuntu ditributive installed from version 1 to version 2. Without restart just tried to launch docker again and it works :slightly_smiling_face:

I had this issue also. Windows 10 Pro, WSL2 Ubuntu, Docker v.4.19.0. Docker was set to “Start Docker Desktop when you log in”. WSL was hung as well as Docker. I solved it by killing all instances of Docker using Task Manager, then killing all instances of WSL. I then started my WSL Ubuntu - it started normally. I then started Docker Desktop - it also started normally. The problem seems to be that Docker is starting before WSL is fully up and running. I unchecked the “Start Docker Desktop when you log in” option and now everything seems to be working fine.

Putting this here for anyone still having issues. This Github comment helped solve my problem: unable to resolve docker endpoint: open C:\Users\username\.docker\machine\machines\default\ca.pem: The system cannot find the path specified. · Issue #7629 · docker/for-win · GitHub

Helped me—because I forgot about Go to the Dashboard (I was running Docker thinking it would bring up the Dashboard—but Docker was already running) :brain: To remember next time I added Docker to the Windows System Tray on the Taskbar

I am running WSL2 and seeing Docker Desktop stuck on starting. This command solved my problem (run it from Windows Command Prompt)

WSL --showdown