Endless "Docker desktop stopping"
- [x] I have tried with the latest version of Docker Desktop
- [ ] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID: Diagnostic is not available too
Actual behavior
Docker Desktop freeze at Docker Desktop stopping.
Expected behavior
- At install stage Docker asks which mode I preffers
- Docker settings available at any time. On changing smth it will restart containers
- Docker app starts and allows to switch used mode
Information
Several months I didn't use Docker at Windows 10 Pro(v.4.2). Today I've tried to start it. It freezes at "Docker Desktop starting" stage. I've tried to remove and install Docker Desktop. As I understand it tries to start at WSL2 (Why you can't ask it at install stage?) How can I switch it to Hyper-V mode if it can't start? Why setting are not available while full app with all containers will be loaded?
Same here with Docker Desktop 4.5.1 running on an Win 10 Pro Azure VM. On startup it says that WSL is missing, but then is stuck in Docker Desktop stopping state, which means that it is not possible to switch to Hyper-V backend.
Hi @Eugentis, If you want to switch to Hyper-V you can edit the $env:APPDATA\Docker\settings.json file and set wslEngineEnabled to false.
We're looking how we can improve the settings and unblock them for such tasks.
Thanks @StefanScherer
But disabling app settings is not the best solution in real world. It should be available independent on Docker engine status
Same here with Docker Desktop 4.5.1 running on an Win 10 Pro Azure VM. On startup it says that WSL is missing, but then is stuck in
Docker Desktop stoppingstate, which means that it is not possible to switch to Hyper-V backend.
Also having this issue, with same version of Docker on Win 10.
A solution that worked for me from the front-end: Go to docker desktop --> Troubleshoot --> Clean / Purge data --> click on wsl 2 and delete.
Once removed, the docker deamon restarted and it worked fine.

@ajay16bharadwaj it works if your dashboard is active But Docker has some strange behaviour with it.If you started or stoped container all dashboard wil be disabled As for me it is very strange approach
Facing same issue ..Any fix for this?
@sreepriyadeepak2021 https://github.com/docker/for-win/issues/12576#issuecomment-1054355287 This solution helps me to enable Docker
A solution that worked for me from the front-end: Go to docker desktop --> Troubleshoot --> Clean / Purge data --> click on wsl 2 and delete.
Once removed, the docker deamon restarted and it worked fine.
This worked for me, thanks!
1.download this soft from https://docs.microsoft.com/en-us/sysinternals/downloads/rammap
2.
3.restart docker desktop
4.It's work!

I have tried every thing still i am unable to open the docker it is stuck on docker desktop stopped...... Any help?
Try to update the WSL (.msi extension). after installing this app is working fine.
I have tried latest Docker 4.9.0, the key is
$ wsl --update
I tried all the stuff already posted above but all to no avail. I realized that each time I restarted the docker desktop app, a "WSL 2 Installation incomplete" pop-up message comes. I clicked the link and reinstalled the kernel update and it worked.

Faced the same problem. Restarted my pc and it started working.
Eu tentei o Docker mais recente
4.9.0, a chave é$ wsl --update
Após executar esse comando e reiniciar a máquina, o docker desktop funcionou corretamente!
After running this command and restarting the machine, docker desktop worked correctly
Make sure after Docker For Desktop (Windows) installation thatWSL (Windows subsystem for Linux) is installed. before your linux configuration machine, at powershell: wsl --set-default-version 2
It is solved my issue.
Hi @Eugentis, If you want to switch to Hyper-V you can edit the
$env:APPDATA\Docker\settings.jsonfile and setwslEngineEnabledtofalse.We're looking how we can improve the settings and unblock them for such tasks.
This worked for me, Thanks.
I am able to run Docker Desktop by following below steps.
-
Use WSL V2 to smoothly run Docker Desktop. To set default wsl version to v2, run
wsl.exe --set-default-version 2 -
Install your Linux flavor. I tried with Ubuntu-18.04 by running command:
wsl --install -d Ubuntu-18.04 -
Above command will install ubuntu with WSL V2, but to make sure you can run command:
wsl.exe --set-version Ubuntu-18.04 2 -
To check the version of your installed linux flavor and respective wsl version:
wsl.exe -l -v
-
Then freshly install Docker Desktop for Windows. It should start running within sometime.

Hi, I also ran into this problem, I don't know exactly what happened, But I think it should be wsl that went wrong, because my wsl can't be opened; After I referred to this answer, I did a reset of the network.
I executed the following two commands:
netsh int ip reset
netsh winsock reset
And restarted my computer,I can open my wsl now:

I have tried latest Docker
4.9.0, the key is$ wsl --update
This work for me as well ... (update: after few restart I am still facing the problem) temporary solution (which work for me) Powershell
- Force stop docker desktop (task manager)
- Run
wsl --shutdownin power shell - Start docker desktop again
I ran into this problem today. This is really bad, I wish they can fix it soon. Hardware: ASUS TUF DASH F15 Software: Windows 10 Home 21H2 (OS build: 19044.1826) Docker Version: latest as of today ( I was not able to go to the settings page. It was running forever)
Here were the list of things I tried but didn't work:
- Uninstalled the current version and installed the latest on docker official website.
- Go to Troubleshoot on docker desktop and click "Clean/Purge data" (click on wsl 2 and delete)
- Go to Troubleshoot on docker desktop and click "Reset to factory defaults"
- Edit the $env:APPDATA\Docker\settings.json file and set wslEngineEnabled to false
At least point I found that my WSL was broken by trying to get Docker to work. I was not able to try the solutions provided above that relates to running the wsl command. Whenever I typed wsl, it was waiting forever on my terminal and nothing happened.
The fact that Docker destroyed my WSL really pissed me off because I relied on WSL to do all the source control on my machine and interact with remote machines.
I tried all the stuff already posted above but all to no avail. I realized that each time I restarted the docker desktop app, a "WSL 2 Installation incomplete" pop-up message comes. I clicked the link and reinstalled the kernel update and it worked.
This issue will be resolved by modifying the settings.json file. 1- Path of the file: C:\Users<username>\AppData\Roaming\Docker\settings.json 2- Set "wslEngineEnabled": false
Hi @Eugentis, If you want to switch to Hyper-V you can edit the
$env:APPDATA\Docker\settings.jsonfile and setwslEngineEnabledtofalse.We're looking how we can improve the settings and unblock them for such tasks.
Already did and still not working.
Try following.
- If there is a VPN running, try disconnecting VPN and restart Docker Desktop.
- Click on troubleshoot (bug) icon on the right top corner, perform a factory reset, and purge data.
To resolve this issue, as shown in dialog “Docker Desktop – Install WSL2 kernel update” we need to download from the reference link mentioned in dialog – https://aka.ms/wsl2kernel
Install the WSL2 kernel update then restart Docker. This should work
Image for reference

Either Docker or Windows should do something for this. None of the solution is working for me.
A solution that worked for me from the front-end: Go to docker desktop --> Troubleshoot --> Clean / Purge data --> click on wsl 2 and delete. Once removed, the docker deamon restarted and it worked fine.
This worked for me, thanks!
This worked for me. Thank you, you saved my hours! 👍
I am experiencing the same issue and trying to resolve that issue as at the moment.
same issue m1 mac pro