Skip to content

WSL integration doesn't work in resource saver mode (4.81+) #522

Closed

Description

@feym78

Bug report

After update from 4.80 to 4.81 I noticed that docker commands from WSL end up with error:

-bash: /usr/bin/docker: No such file or directory
  1. It happens only when daemon goes into resource saving. If I wake it up then it works normally
  2. It only affects WSL, In powershell docker cli works in any state.
  3. I noticed this after upgrade to 4.81 and further 4.82 didn't help. But when I reinstalled to 4.80 I noticed that daemon just doesn't go into resource saving (Fix for this was mentioned in 4.81) and cli command works.
  4. I tried to reset data and reset settings in Troubleshoot menu, completely delete and install again - nothing helped.
  5. I noticed that after going into resource saving cli bin changes:
  1. Engine running
~$ which docker
/usr/bin/docker
~$ ls -la /usr/bin/docker
lrwxrwxrwx 1 root root 48 Jul 14 15:55 /usr/bin/docker -> /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker
  1. Resource saving
~$ which docker
/Docker/host/bin/docker
~$ ls -la /usr/bin/docker
ls: cannot access '/usr/bin/docker': No such file or directory
~$ ls -la /Docker/host/bin/docker
-r-xr-xr-x 1 root root 1359 Jun 26 16:49 /Docker/host/bin/docker
~$ /Docker/host/bin/docker ps

The command 'docker' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/

Bin from "Engine running" state available, but also doesn't work

ls -la /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker
-rwxrwxr-x 1 root root 42474832 Jun 26 14:50 /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker
~$ /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker ps
unexpected fault address 0x128de40
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0x128de40 pc=0x128de40]

goroutine 1 gp=0x3c16cf1881e0 m=10 mp=0x3c16cf726008 [running]:
runtime.throw({0x201025?, 0x3c16cf89f700?})
        /usr/local/go/src/runtime/panic.go:1229 +0x4a fp=0x3c16cf89f6a8 sp=0x3c16cf89f678 pc=0xe0334a
runtime.sigpanic()
... very logs trace

I use latest WSL version and Ubuntu 24.04 distro, WSL integration enabled in Docker settings

Platform

Windows

Version information

Client:
 Version:           29.6.1
 API version:       1.55
 Go version:        go1.26.4
 Git commit:        8900f1d
 Built:             Fri Jun 26 11:39:39 2026
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop 4.81.0 (232925)
 Engine:
  Version:          29.6.1
  API version:      1.55 (minimum version 1.40)
  Go version:       go1.26.4
  Git commit:       8ec5ab3
  Built:            Fri Jun 26 11:41:04 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v2.2.5
  GitCommit:        e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
 runc:
  Version:          1.3.6
  GitCommit:        v1.3.6-0-g491b69ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
Client:
 Version:    29.6.1
 Context:    default
 Debug Mode: false
 Plugins:
  agent: Docker AI Agent Runner (Docker Inc.)
    Version:  v1.88.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-agent
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v1.27.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-ai
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.35.0-desktop.2
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v5.2.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.47
    Path:     /usr/local/lib/docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Docker Inc.)
    Version:  v0.4.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-desktop
  dhi: CLI for managing Docker Hardened Images (Docker Inc.)
    Version:  v0.0.5
    Path:     /usr/local/lib/docker/cli-plugins/docker-dhi
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.31
    Path:     /usr/local/lib/docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-init
  mcp: Docker MCP Plugin (Docker Inc.)
    Version:  v0.43.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-mcp
  model: Docker Model Runner (Docker Inc.)
    Version:  v1.2.5
    Path:     /usr/local/lib/docker/cli-plugins/docker-model
  offload: Docker Offload (Docker Inc.)
    Version:  v0.6.7
    Path:     /usr/local/lib/docker/cli-plugins/docker-offload
  pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
    Version:  v0.1.5
    Path:     /usr/local/lib/docker/cli-plugins/docker-pass
  sandbox: "docker sandbox" is deprecated, use Docker Sandboxes instead (Docker Inc.)
    Version:  v0.13.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sandbox
  scout: Docker Scout (Docker Inc.)
    Version:  v1.22.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-scout

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 29.6.1
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Discovered Devices:
  cdi: docker.com/gpu=webgpu
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
 runc version: v1.3.6-0-g491b69ba
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.18.33.2-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 15.18GiB
 Name: docker-desktop
 ID: 1e63aa31-3f43-4089-9dd6-47536545e4e3
 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=unix:///var/run/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Firewall Backend: iptables

Diagnostics ID

No response

Activity

  1. added theissue type on Jul 14, 2026
  2. JohnMaddison commented on Jul 14, 2026

    @JohnMaddison

    I have the same issue with kubectl.

    john@DESKTOP:~$ kubectl
    -bash: /usr/local/bin/kubectl: No such file or directory

    Disabling resource saver fixes it.

  3. bsousaa commented on Jul 21, 2026

    @bsousaa
    Collaborator

    Fixed with 4.83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions