for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Endless "Docker desktop stopping"

Open Eugentis opened this issue 3 years ago • 55 comments

  • [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

  1. At install stage Docker asks which mode I preffers
  2. Docker settings available at any time. On changing smth it will restart containers
  3. 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?

Eugentis avatar Feb 22 '22 19:02 Eugentis

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.

pascalberger avatar Feb 25 '22 17:02 pascalberger

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.

StefanScherer avatar Feb 28 '22 15:02 StefanScherer

Thanks @StefanScherer

But disabling app settings is not the best solution in real world. It should be available independent on Docker engine status

Eugentis avatar Mar 06 '22 04:03 Eugentis

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.

Also having this issue, with same version of Docker on Win 10.

rubikscube09 avatar Apr 05 '22 21:04 rubikscube09

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. image

ajay16bharadwaj avatar Apr 13 '22 18:04 ajay16bharadwaj

@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

Eugentis avatar Apr 15 '22 05:04 Eugentis

Facing same issue ..Any fix for this?

sreepriyadeepak2021 avatar Apr 15 '22 13:04 sreepriyadeepak2021

@sreepriyadeepak2021 https://github.com/docker/for-win/issues/12576#issuecomment-1054355287 This solution helps me to enable Docker

Eugentis avatar Apr 16 '22 16:04 Eugentis

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. image

This worked for me, thanks!

prakharrathi25 avatar May 17 '22 19:05 prakharrathi25

1.download this soft from https://docs.microsoft.com/en-us/sysinternals/downloads/rammap 2. image 3.restart docker desktop 4.It's work! image

algaeReed avatar May 19 '22 01:05 algaeReed

I have tried every thing still i am unable to open the docker it is stuck on docker desktop stopped...... Any help?

Singharnav23 avatar Jun 14 '22 04:06 Singharnav23

Try to update the WSL (.msi extension). after installing this app is working fine.

sudoberlin avatar Jun 14 '22 15:06 sudoberlin

I have tried latest Docker 4.9.0, the key is

$ wsl --update

jcs090218 avatar Jun 16 '22 02:06 jcs090218

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. Embedded Error

Etornam09 avatar Jun 18 '22 00:06 Etornam09

Faced the same problem. Restarted my pc and it started working.

mujeebishaque avatar Jul 09 '22 20:07 mujeebishaque

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

gnp-naul avatar Jul 17 '22 23:07 gnp-naul

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.

manzambi11 avatar Jul 18 '22 15:07 manzambi11

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.

This worked for me, Thanks.

attauf avatar Jul 19 '22 11:07 attauf

I am able to run Docker Desktop by following below steps.

  1. Use WSL V2 to smoothly run Docker Desktop. To set default wsl version to v2, run wsl.exe --set-default-version 2

  2. Install your Linux flavor. I tried with Ubuntu-18.04 by running command: wsl --install -d Ubuntu-18.04

  3. Above command will install ubuntu with WSL V2, but to make sure you can run command: wsl.exe --set-version Ubuntu-18.04 2

  4. To check the version of your installed linux flavor and respective wsl version: wsl.exe -l -v image

  5. Then freshly install Docker Desktop for Windows. It should start running within sometime. image

meSATYA avatar Jul 23 '22 11:07 meSATYA

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: image

ybqdren avatar Jul 24 '22 12:07 ybqdren

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

  1. Force stop docker desktop (task manager)
  2. Run wsl --shutdown in power shell
  3. Start docker desktop again

adou2 avatar Aug 04 '22 04:08 adou2

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:

  1. Uninstalled the current version and installed the latest on docker official website.
  2. Go to Troubleshoot on docker desktop and click "Clean/Purge data" (click on wsl 2 and delete)
  3. Go to Troubleshoot on docker desktop and click "Reset to factory defaults"
  4. 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.

tanyeun avatar Aug 04 '22 11:08 tanyeun

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. Embedded Error

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

ehsaan90 avatar Aug 05 '22 04:08 ehsaan90

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.

Already did and still not working.

SoderJuliano avatar Aug 07 '22 18:08 SoderJuliano

Try following.

  1. If there is a VPN running, try disconnecting VPN and restart Docker Desktop.
  2. Click on troubleshoot (bug) icon on the right top corner, perform a factory reset, and purge data.

prashantsoni avatar Aug 11 '22 14:08 prashantsoni

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 image

buriihenry avatar Aug 15 '22 05:08 buriihenry

Either Docker or Windows should do something for this. None of the solution is working for me.

aadeethyeah avatar Sep 23 '22 11:09 aadeethyeah

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. image

This worked for me, thanks!

This worked for me. Thank you, you saved my hours! 👍

NavnathKumbhar avatar Sep 27 '22 17:09 NavnathKumbhar

I am experiencing the same issue and trying to resolve that issue as at the moment.

Crackboomlaboom avatar Oct 24 '22 03:10 Crackboomlaboom

same issue m1 mac pro

eli-front avatar Nov 06 '22 02:11 eli-front