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

a wsl distro docker desktop relies on has exited unexpectedly

Open tejaspatil0407 opened this issue 1 year ago • 14 comments

Description

This error box keeps coming up and completely stop docker from running. "a wsl distro docker desktop relies on has exited unexpectedly. this usually happens as a result of an external entity terminating wsl(e.g. running wsl --shutdown)".

The error comes randomly and requires you to restart docker and multiple times happens while a docker compose is running, causing me to re-run the docker-compose. Each docker compose takes 20+ minutes to run and has severely impaired my ability to use docker.

Reproduce

Start docker.

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.10
 Version:           25.0.2
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        29cf629
 Built:             Thu Feb  1 00:24:09 2024
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.27.1 (136059)
 Engine:
  Version:          25.0.2
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       fce6e0c
  Built:            Thu Feb  1 00:23:17 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    25.0.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.22
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.21
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.0.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.3.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 3
 Server Version: 25.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.133.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 4.806GiB
 Name: docker-desktop
 ID: ccba28bb-f7f5-45a4-a7bc-53fc5c583287
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Diagnostics ID

47C9E281-FBA6-461E-B241-8B7ADE49852E/20240214113542

Additional Info

No response

tejaspatil0407 avatar Feb 14 '24 11:02 tejaspatil0407

Yeah, I'm stuck with this as well after attempting to update my docker desktop. I already unregistered and re-installed Ubuntu. Uninstalled and re-installed docker desktop. Same error.

chadacious avatar Feb 15 '24 01:02 chadacious

У меня такая же проблема уже неделю, при этом ранее Docker на Windows 11 работал нормально

Andryfrol avatar Feb 19 '24 18:02 Andryfrol

I'm stuck on this issue too.

nrh387 avatar Feb 22 '24 07:02 nrh387

No resolution now?I'm stuck too.

Gininch avatar Feb 22 '24 08:02 Gininch

Hi! This cmd solved the issue: netsh winsock reset

iVVKharchenko avatar Feb 22 '24 20:02 iVVKharchenko

Hi, I am getting the same issue . Tried netsh winsock reset too.

herambnaria-Rave avatar Feb 26 '24 15:02 herambnaria-Rave

These are the steps I took to get it working again. I'm not sure what the critical path was.

  1. Terminate all Docker processes.

  2. Clear the contents of all these directories (restart your PC if anything is locked):

  • %APPDATA%\Docker
  • %USERPROFILE%.docker
  • %USERPROFILE%\AppData\Local\Docker
  1. Restart your PC and try again.
  2. Try running Docker Desktop again.

If you get the below error, continue on to step 5:
307881613-a76b9c37-ff0b-4ac0-8f6c-465aac1ef6a9

  1. Run wsl --update inside command prompt. Verify that wsl is on the latest version.

  2. Reboot your PC .

  3. Try running Docker Desktop again.

If you get the below error, continue on to step 8:
307888549-8a18855b-e829-4697-ae57-4c8678151970

  1. Pick "Reset Docker to factory defaults" on the alert
  2. Try running Docker Desktop again.

MrChadMWood avatar Feb 26 '24 17:02 MrChadMWood

I tried these steps and when i tried to run Docker again i got the loading page for a long time - about 4-5 min and then got the second error again

image

image

herambnaria-Rave avatar Feb 26 '24 19:02 herambnaria-Rave

@herambnaria-Rave That's good. In my case, all I needed to do then was select "Reset Docker to factory defaults" on the alert.

After resetting Docker, restart your PC again and try Docker.

MrChadMWood avatar Feb 26 '24 20:02 MrChadMWood

Had the same problem, tried all the solutions above, as well as a full uninstall/reinstall of Dockers and WSL... In the end, this was the root-cause on my machine: https://github.com/microsoft/WSL/issues/10033 Removing this WSLENV env variable (I don't recall creating this), and reinstalling the Ubuntu distro: wsl --unregister Ubuntu wsl --install

rfmb74 avatar Feb 29 '24 17:02 rfmb74

image

beck-8 avatar Mar 22 '24 10:03 beck-8

i tried to click "reset to factory defaults" as mentioned above. After next start and login it started works.

I did also update to 4.28.0 ad it works (win11).

uniu avatar Mar 29 '24 16:03 uniu

Try disable "Use legacy console" in cmd properties.

hellooops avatar Apr 10 '24 08:04 hellooops

Got this problem after updating Docker-desktop. wsl --update solved it. NO reboot needed.

ZeitgeberH avatar Apr 13 '24 19:04 ZeitgeberH

Hi! This cmd solved the issue: netsh winsock reset

fixed my issue, thank you !

SZMOFEI avatar May 14 '24 08:05 SZMOFEI

Try disable "Use legacy console" in cmd properties. it works! thank u!

noiiiu avatar Jul 01 '24 12:07 noiiiu