docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.87k stars 291 forks source link

Wsl/Service/WSL_E_DISTRO_NOT_FOUND #13128

Open Niks218 opened 1 year ago

Niks218 commented 1 year ago

Actual behavior

Can't start Docker Desktop for Windows with error code Wsl/Service/WSL_E_DISTRO_NOT_FOUND after updating to last version 4.15.0 (93002).

Expected behavior

Be able to use Docker Desktop.

Information

I have WSL2 distros running fine. Tried to reinstall Docker Desktop. Output of wsl --list shows no docker-desktop distro at all, only docker-desktop-data.

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

Failing with

1 : The test: are WSL distros installed?
    Failed with: WSL Distribution docker-desktop is missing

Steps to reproduce the behavior

  1. Start Docker Desktop
Niks218 commented 1 year ago

Running wsl -l -v shows that docker-desktop distro is actually in uninstalling state

Niks218 commented 1 year ago

Managed to solve it with deleting stuck docker-desktop distro using wsl --unregister docker-desktop

apurvshah commented 1 year ago

I am also facing the same issue. So, after using wsl --unregister docker-desktop command, is it require to reinstall Docker Desktop again? image

cforce commented 1 year ago

For me it it still not solved

C:\Users\WALLWIF>wsl -l -v NAME STATE VERSION

und-miller commented 2 months ago

I am also facing the same issue. So, after using wsl --unregister docker-desktop command, is it require to reinstall Docker Desktop again? image

Still occurring after updating to docker 4.34.2 on 09/16/2024

Thankfully wsl --unregister docker-desktop solved the problem. Thank you.

mrouleau-ara commented 1 week ago

I just hit this after updating to v4.35.1 on a Windows 10 machine.

After wsl --unregister docker-desktop, I could start and run docker desktop as normal.