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

installed docker and it will close after opening

Open hellomynameisleo opened this issue 1 year ago • 5 comments

Description

when running docker with the wsl2 ticked after a fresh install I get the error docker engine has stopped, then it will automatically close and a message will popup saying the below, I've uninstalled and reinstall it and restarted but still the error has come up. Process has exited Process com.docker.dev-envs.exe has exited. You must restart Docker Desktop, if the problem persists please report it.

I have wsl2 install as it shows using the wsl -l NAME STATE VERSION

  • Ubuntu Stopped 2

hyper-v is enabled and have tested with a running hyper-v vm sucessfully.

Reproduce

  1. install docker desktop
  2. open docker desktop
  3. error pops up

Expected behavior

No response

docker version

unable to resolve docker endpoint: open C:\Users\Leo\.docker\machine\machines\default\ca.pem: The system cannot find the path specified.

docker info

unable to resolve docker endpoint: open C:\Users\Leo\.docker\machine\machines\default\ca.pem: The system cannot find the path specified.

Diagnostics ID

9D69A718-F6C1-4C27-B721-AA9780CE0AAE/20231212132817

Additional Info

[PASS] DD0027: is there available disk space on the host? [SKIP] DD0028: is there available VM disk space? [SKIP] DD0002: does the bootloader have virtualization enabled? [SKIP] DD0018: does the host support virtualization? [FAIL] DD0001: is the application running? Docker is not running [SKIP] DD0022: is the Virtual Machine Platform Windows Feature enabled? [SKIP] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [FAIL] DD0025: are WSL distros installed? WSL Distribution docker-desktop is missing [PASS] DD0026: is the WSL LxssManager service running? [FAIL] DD0029: is the WSL 2 Linux filesystem corrupt? prereq failed: are WSL distros installed? [FAIL] DD0035: is the VM time synchronized? prereq failed: are WSL distros installed? [FAIL] DD0017: can a VM be started? prereq failed: are WSL distros installed? [FAIL] DD0016: is the LinuxKit VM running? prereq failed: is the application running? [FAIL] DD0011: are the LinuxKit services running? prereq failed: is the LinuxKit VM running? [FAIL] DD0004: is the Docker engine running? prereq failed: are the LinuxKit services running? [PASS] DD0015: are the binary symlinks installed? [FAIL] DD0031: does the Docker API work? prereq failed: is the Docker engine running? [PASS] DD0013: is the $PATH ok? [FAIL] DD0003: is the Docker CLI working? prereq failed: is the Docker engine running? [FAIL] DD0005: is the user in the docker-users group? prereq failed: is the LinuxKit VM running? [FAIL] DD0038: is the connection to Docker working? prereq failed: is the Docker engine running? [FAIL] DD0014: are the backend processes running? prereq failed: is the LinuxKit VM running? [FAIL] DD0007: is the backend responding? prereq failed: are the backend processes running? [FAIL] DD0009: is the vpnkit API responding? prereq failed: are the backend processes running? [FAIL] DD0010: is the Docker API proxy responding? prereq failed: are the backend processes running? [SKIP] DD0006: is the Docker Desktop Service responding? [FAIL] DD0030: is the image access management authorized? prereq failed: is the Docker engine running? [PASS] DD0033: does the host have Internet access? [PASS] DD0002: does the bootloader have virtualization enabled? [PASS] DD0018: does the host support virtualization? [WARN] DD0001: is the application running? Docker is not running [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [WARN] DD0025: are WSL distros installed? WSL Distribution docker-desktop is missing [PASS] DD0026: is the WSL LxssManager service running? [WARN] DD0029: is the WSL 2 Linux filesystem corrupt? prereq failed: are WSL distros installed? [WARN] DD0035: is the VM time synchronized? prereq failed: are WSL distros installed? [WARN] DD0017: can a VM be started? prereq failed: are WSL distros installed? [WARN] DD0016: is the LinuxKit VM running? prereq failed: is the application running? [WARN] DD0011: are the LinuxKit services running? prereq failed: is the LinuxKit VM running? [WARN] DD0004: is the Docker engine running? prereq failed: are the LinuxKit services running? [PASS] DD0015: are the binary symlinks installed? [WARN] DD0031: does the Docker API work? prereq failed: is the Docker engine running? [WARN] DD0032: do Docker networks overlap with host IPs? prereq failed: does the Docker API work? 2 failures detected 1 : is the application running? Failed with: Docker is not running Is the Docker Desktop application running?

2 : are WSL distros installed? Failed with: WSL Distribution docker-desktop is missing The Docker engine uses several WSL distributions. Therefore these must be installed.

self-diagnose took 478.1587ms

I also notice it saying WSL Distribution docker-desktop is missing I don't understand why it didn't install it when wsl2 is working and I have ubuntu running just fine in the terminal.

hellomynameisleo avatar Dec 12 '23 13:12 hellomynameisleo

I am also facing the same issue. Did you find the solution for it?

athulsalil avatar Jan 23 '24 06:01 athulsalil

I had the same problem until I checked in the BIOS Virtualization option. It should be enabled.

DanyloMeranov avatar Jan 23 '24 22:01 DanyloMeranov

I am facing the same issue. I have checked the BIOS and the virtualization option is endabled.

netzstreuner avatar Jan 28 '24 10:01 netzstreuner

@hellomynameisleo, take a look at the two comments. My solution was to delete old environment variables.

  • https://github.com/docker/for-win/issues/7629#issuecomment-657153919
  • https://github.com/docker/for-win/issues/1746#issuecomment-382526295

netzstreuner avatar Mar 04 '24 07:03 netzstreuner

https://apilevel.wordpress.com/2017/11/23/docker-for-windows-certificate-error-solution/ Hope this could help you.

pangyanchao avatar Apr 08 '24 08:04 pangyanchao