"Docker Desktop Starting..." forever on Windows
Asked Answered
C

20

70

I have installed Docker Desktop version 4.4.4 and it is not running. It only displays "Docker Desktop Starting ..." but never starts running.

I have tried so many ways but didn't solve:

  1. Allowing the following files in windows firewall C:\program files\docker\docker\resources\vpnkit.exe, C:\program files\docker\docker\com.docker.service C:\program files\docker\docker\resources\com.docker.proxy.exe
  2. Removing 'Docker' and 'Docker Desktop' folders from AppData/Roaming and AppData/Local
  3. Uninstalling and reinstalling Docker with different versions including 4.5.1
Capon answered 23/2, 2022 at 14:22 Comment(3)
I have the same problem too against the same possible workarounds but in Windows 10. If I run docker version I got the following: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified. This might be a clueArchducal
Docker 4.16.2 fixes a regression which caused Windows instances to remain in the "starting" state. See github.com/docker/for-win/issues/13165 and docs.docker.com/desktop/release-notes/#4162 for more information.Dryad
The update in 4.16.2 may not be sufficient for some users; it didn't appear to work for me. Instead, I uninstalled Docker from Windows, reinstalled an earlier version (i.e. 4.15.0), and that appears to have resolved the issue. I've seen reports from others that this approach works, even after re-updating to 4.16.x.Dryad
S
107

The main problem is WSL2 does not auto install the kernel when WSL2 installs, yet Docker Desktop expects it already installed. So, fully close & stop Docker as other answers have said, then run this cmd as admin:

wsl --update

Now open Docker Desktop & it should start up ok.


edit: This answer should be unnecessary now, as Docker Desktop v4.22 shows this on first run, if it had to install WSL2 as part of its installation.

Docker Desktop - WSL kernel version too low

However,

I noticed it still hung again the next time, after I chose Quit & ran the update & Restart Docker. I had to then Quit Docker yet again, open yet again the app, & wait about 1 or 2 minutes for it to finish its initial startup ok. It may be faster on newer PCs, as mine for now is Win10 22H2 with only 4gb ram. I will test again on Win11 22H2 on newer PC, in few weeks.

Scowl answered 14/1, 2023 at 15:8 Comment(9)
I think that helped me. and your answers is an hour ago so nice timingBabiche
Bizar that docker doesn't give any message about this simple issue but just keeps stalling.Dielu
Fixed it for me on Windows 11 Pro, thank you.Sinclair
This worked for me on Windows 11 Home. Thanks a ton.Defrost
This also works for W10 22H2Earful
Thank you, that was it for me on a new win 11 install.Prosper
This also fixed it on a fresh Docker install. Hadn't had WSL enabled and checked yes to using WSL2 when installing Docker Desktop. Stopping all the services and updating WSL worked.Bucksaw
It updated something, but even after PC restart, Docker Desktop hangs on Startup.Alarcon
Didn't work, I get The most recent version of Windows Subsystem for Linux is already installed. and Docker still hangs indefinitely on startupMcafee
A
24

I've found out another symptom leading to the solution is also related to WSL.

On one side, Docker service won't start throwing this error:

error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.

And on the other, WSL is unresponsive. Attempting to run a WSL Distro or WSL command directly on CMD, won't return any output at all. It will just hang in there.

So the solution is common to WSL and Docker. I've found in a question regarding the WSL issue, that the LxssManager Windows service is staled (it may show under services.msc as Stopping and all the buttons are greyed out, or I've even seen it Running apparently, but with the Docker and WSL issues above, so something is wrong with it still.)

First, we have to get LxssManager PID in order to kill it. Using an elevated shell, we can get it this way:

sc queryex LxssManager

Having the PID, we can kill the process but beware I wasn't able to kill it using kill or taskkill commands. I was getting the following error:

ERROR: The process with PID XXXXX could not be terminated.
Reason: Access is denied.

To effectively kill the process, do as following:

wmic process where ProcessID=XXXXX delete

Replace XXXXX with PID, of course. Having done so, start the LxssManager service:

net start LxssManager

A word of warning: I've noted in some cases this is not enough for unknown (to me) technical reasons even if LxssManager service is shown as Running. Just repeat the above steps! Sometimes it works doing this once, sometimes doing it twice for some reason.

TL;DR

  1. Kill LxssManager Windows service using wmic+PID.
  2. Start LxssManager service.
  3. Repeat twice or more if issues persist.
  4. Docker and WSL issues are solved.
Archducal answered 24/2, 2022 at 21:21 Comment(4)
Your solution works, but the problem reiterates in days or couple weeks or so. I fixed it like this 10 times last 5 months. Then I "fixed" this problem permanently by stopping using desktop docker and using linux only.Enrique
For me LxssManager was running and appeared fine but restarting the service resolved the issue, thanks!Nitrosyl
same WSL/LxssManager problem and simpler solution hereUncover
For this kind of issues is why i dont use docker at all.Underclassman
S
8

To resolve this issue follow the below steps.

Just delete the temporary files from the following.

  1. C:\Windows\Temp
  2. C:\Users\{yourAccountName}\AppData\Local\Temp
  3. C:\Windows\Prefetch

then

  • Uninstall Docker Desktop
  • Restart computer
  • Before installing Docker, make sure you have Ubuntu WSL (download from Microsoft store)
  • WSL2 Linux kernel update package for x64 machines for Windows enter image description here
  • [optional] If you need Terminal (multi-terminal) download from Microsoft Store
  • Install Docker Desktop again
Senegal answered 25/9, 2022 at 12:12 Comment(2)
Doing this with a WSL update worked perfectlyScupper
Exactly, I encountered the same issue when I required Docker on another PC. At that time, I realized that WSL was the only requirement.Senegal
B
6

For me, it was a problem with WSL. When I tried:

wsl --install -d Ubuntu

in a command window, after a few minutes I got error 0x80370114

The fix was to do:

  1. Exploit Protection > System Settings > Control Flow Guard
  2. turn on
  3. restart computer

Then reinstall/restart Docker Desktop, and it works!

Hope this helps someone else

Babysitter answered 22/8, 2022 at 14:59 Comment(1)
This just saved my sanity. I'd tried 50 different things and this is what finally did it for. Fixed docker and WSL2 on Windows 11 Home. Thank you!Cacography
T
5

I was facing same code for for Docker version 4.*. For me it was Visual Studio code,

  1. Stopped WSL form Task manager

  2. stopped Docker which was showing "Docker desktop is starting" form Task manage

  3. stopped Visual Studio code form Task manager

  4. Started Docker again

These steps placed my Docker in Running state in 30 seconds

Hope this helps someone!

Torgerson answered 11/8, 2022 at 18:1 Comment(0)
O
5

Solved this issue with @Alvi answer Docker forever in "Docker is starting.." at Windows task

I guess you are using wsl2 features. In that case, open PowerShell or command prompt and type: optionalfeatures.exe

scroll down and uncheck

Windows Subsystem for Linux

apply the changes and restart your computer.

After restart follow the previous steps again and check

Windows Subsystem for Linux

and restart again. Hopefully now your docker will run

Oversight answered 20/10, 2022 at 8:6 Comment(1)
This did it for me. After I disabled the feature and reinstalled, docker ran an update. After enabling the feature and restarting again, it took about a minute, and docker was running perfectly again.Pareu
P
2

My fresh install was experiencing the same symptoms. Also wsl --list showed "no installed distributions". I tried many reinstallations and restarts of Docker and WSL, but eventually found the steps:

  1. In Task Manager, kill all processes related to Docker & Docker Desktop
  2. Run Docker Desktop as administrator

Got it working on on Windows 11 Enterprise.

Patricapatrice answered 17/1, 2023 at 12:50 Comment(0)
A
2

As wrote here, you need to do:

wsl --update

But after that it doesn't fix my issue until I did restart to my pc.

Aquavit answered 28/1, 2023 at 21:46 Comment(1)
That'd be a perfect comment to the existing answer. :-)Wyndham
J
1

for me it worked in windows (docker desktop):

  • to uninstall the docker
  • reinstall as administrator
  • don't select the part with wsl
Jeff answered 15/1, 2023 at 3:9 Comment(0)
F
1

enter image description here

  1. got to services and stop Docker desktop service and start again

  2. reopen Docker desktop it will work

Foscalina answered 17/1, 2023 at 7:37 Comment(0)
R
1
  1. Exit Docker first
  2. Execute code below in PowerShell:
wsl --unregister docker-desktop 
wsl --unregister docker-desktop-data
  1. Relaunch Docker Desktop and wait

This worked for me.

Found on https://debugah.com/solved-docker-forever-in-docker-is-starting-at-windows-task-714/

Relish answered 7/8, 2023 at 20:26 Comment(0)
G
0

What worked for me was to log in into the Docker (upper right corner), but when I first clicked on login, it said "exec: "rundll32": executable file not found in %PATH%" - I search and found that I need to check environmental variable in PATH that I have "C:\WINDOWS\system32" there - (and in my case I really had it broken somehow - don't know why, but I missed backslash between Windows and system32). So I fixed to correct path, restarted PC. Then I was able to login. And immediately "Docker Desktop Starting..." was gone.

Guinevere answered 12/7, 2022 at 16:33 Comment(0)
P
0

I use Docker with PyCharm. I ran into this problem when I launched PyCharm and Docker Desktop at about the same time.

On my machine Docker Desktop starts automatically when I boot. I can avoid the problem by waiting for Docker Desktop to finish starting. And then start PyCharm.

Passivism answered 16/12, 2022 at 21:46 Comment(0)
R
0

I am running windows 11, visual studio 2023 and had this issue.

First, open a command prompt and type

wsl.exe --list --online

Then enter following

wsl.exe --install Ubuntu-20.04

Then type in the prompt sudo apt update to update the distribution. Lastly, start up Docker desktop and log in (you can register at their site). That fixed Docker on my pc.

Reactivate answered 14/1, 2023 at 17:7 Comment(0)
C
0

I was also having the same problem, just a few minutes ago.

Platform: Windows 10 Pro - 22H2 - Build 19045.2486

Windows Updates newly installed: KB5022282, KB5020876, KB5012170

What i did was: Activating the Windows Hypervisor Platform

And it did solve the problem, atleast for now

Cashbook answered 14/1, 2023 at 19:14 Comment(1)
KB5022282 seems to be the root of the problem. We've had issues too, we are using standard (native) Docker within WSL. All networking in WSL is gone when installing this update. Uninstalling it and using wushowhide to block updates fixed itSell
A
0

In my case it helped me to enable the CPU SVM (Support Vector Machine) function in my BIOS settings.

Also, if you have this feature disabled, you will not be able to use Virtual Box either.

SVM in BIOS

Amortize answered 16/1, 2023 at 14:39 Comment(0)
A
0
wsl -v

if it show version then linx is install search windows programer feature in your laptop enable virtulization

wsl --set-default-version 2

restart laptop and then start docker and wait for 2 minutes your docker will start working

Alleviative answered 19/1, 2023 at 20:9 Comment(0)
P
0

This worked for me.

wsl --install -d Ubuntu

enter image description here

And no loss with pulled images. It's all retained. enter image description here

Pavid answered 15/7, 2023 at 7:11 Comment(0)
R
0

On Win 10 and reinstalling Docker is what helped.

Ripley answered 17/7, 2023 at 17:22 Comment(0)
L
0

On Windows 10 Pro (10.0.19045.3208)

After doing the following:

1.wsl --install from command prompt

2.Docker Desktop v4.22.0 installation

Starting Docker Desktop got stuck with message "Starting the Docker Engine"

Shutting down the machine and starting again fixed it.

Lyndy answered 6/8, 2023 at 17:48 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.