docker / for-win

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

error show:running wsl-keepalive in "docker-desktop-data": WSL engine terminated abruptly #14064

Open iambiao opened 6 months ago

iambiao commented 6 months ago

Description

windows 11 professional 23H2 OS build number 22631.3447 D:\docker>docker --version Docker version 26.0.0, build 2ae903e

D:\docker>wsl --version WSL version: 2.1.5.0 kernel version: 5.15.146.1-2 WSLg version: 1.0.60 MSRDC version: 1.2.5105 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22631.3447

After the Docker starts, I use D: \ Docker>Docker build - t yolov8_cpu Create a Docker image and after running for 20 minutes, an error window will pop up with the following message:

Docker Desktop - WSL distro terminated abruptly A WSL distro that Docker Desktop relies on has exited unexpectedly. This usually happens as a result of an external entity terminating WSL (e.g. running wsl --shutdown). Restart Docker Desktop. If the issue persists, collect diagnostics and submit an issue⁠. running wsl-keepalive in "docker-desktop-data": WSL engine terminated abruptly I need to choose to exit or restart, and then the build session exits。

Attempted unsuccessful methods: ● Turn WSL2 on or off during installation ● Restart after uninstallation, restart after installation, and then open again ● Netsh Winsock reset, restart LSP repair tool ● Exit Proximitor, 360 VPN Exit Docker, execute the following command, and then open again Wsl -- unregister ranger desktop Wsl -- unregister ranger desktop data ●Delete C:/users/. Docker, restart

how can i do next step,need help please.thanks

Reproduce

Docker build - t yolov8_cpu

Expected behavior

No response

docker version

windows 11 professional 23H2 OS build number 22631.3447
D:\docker>docker --version
Docker version 26.0.0, build 2ae903e

D:\docker>wsl --version
WSL version: 2.1.5.0
kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3447

docker info

D:\docker>docker info
Client:
 Version:    26.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.26.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.27
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.23
    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.1.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
  scout: Docker Scout (Docker Inc.)
    Version:  v1.6.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 26.0.0
 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.146.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 7.606GiB
 Name: docker-desktop
 ID: 3ac90c62-f6e5-4dc5-87e9-c3dbbcb2446f
 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
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 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

1339

Additional Info

No response

JustSuperHuman commented 6 months ago

I have this happen consistently. I'm mostly wondering if someone has input on how to diagnose further?

I'm running Immich and Portainer if that's relevant. Windows and WSL are fully up to date.

iambiao commented 6 months ago

My problem has been resolved. The reason is that my laptop is running low on memory. I stopped some unnecessary programs and released some memory, but this error did not occur. You can check the resource status of the system