for-win
for-win copied to clipboard
a wsl distro docker desktop relies on has exited unexpectedly
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
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.
У меня такая же проблема уже неделю, при этом ранее Docker на Windows 11 работал нормально
I'm stuck on this issue too.
No resolution now?I'm stuck too.
Hi! This cmd solved the issue: netsh winsock reset
Hi, I am getting the same issue . Tried netsh winsock reset
too.
These are the steps I took to get it working again. I'm not sure what the critical path was.
-
Terminate all Docker processes.
-
Clear the contents of all these directories (restart your PC if anything is locked):
- %APPDATA%\Docker
- %USERPROFILE%.docker
- %USERPROFILE%\AppData\Local\Docker
- Restart your PC and try again.
- Try running Docker Desktop again.
If you get the below error, continue on to step 5:
-
Run
wsl --update
inside command prompt. Verify that wsl is on the latest version. -
Reboot your PC .
-
Try running Docker Desktop again.
If you get the below error, continue on to step 8:
- Pick "Reset Docker to factory defaults" on the alert
- Try running Docker Desktop again.
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
@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.
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
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).
Try disable "Use legacy console" in cmd properties.
Got this problem after updating Docker-desktop.
wsl --update
solved it. NO reboot needed.
Hi! This cmd solved the issue: netsh winsock reset
fixed my issue, thank you !
Try disable "Use legacy console" in cmd properties. it works! thank u!