Repository navigation
Description
Bug report
Bug description
After some hours of normal use, Docker Desktop (Hyper-V backend, gRPC FUSE file sharing) gets into a state where no container can be started anymore. docker run / docker start / docker compose up hang forever and the container stays in Created. Only restarting Docker Desktop recovers it. It happens repeatedly.
The engine itself is healthy during the hang. docker ps, docker inspect, docker logs, and docker version work, and the VM has plenty of free memory with no OOM events. The start request never reaches dockerd. It is held inside com.docker.backend.
Expected: the container starts.
Actual: the start request blocks indefinitely in the host-side API proxy.
Analysis (from a goroutine dump of com.docker.backend taken during the hang)
The dump was taken with com.docker.diagnose gather (backend/stacks.log). The relevant excerpt is attached.
- Every container start goes through
apiproxy.(*containerStartRewriter).RequestRewrite → proxy.(*proxyStart).RequestRewrite → volume.(*grpcfuseClient).Add → pb.(*volumeShareClient).Add. Two start handlers were blocked there for 3 and 5 minutes. - On the server side, all
VolumeShare.Add/VolumeShare.Removehandlers wait involume.(*svr).recomputeWatchesSync(chan receive). Four handlers were waiting for 2 to 6 minutes. The resyncer (resyncer.(*volumeResource).Stop → VolumeShare.Remove) was stuck too. - The single recompute loop
volume.(*svr).Run.func3 → recomputeWatches → (*watch).Invalidate → pb.(*eventClient).Writehad been waiting 6 minutes for the response header of theWriteRPC to the VM. - VM side at the same time:
/sys/fs/fuse/connections/41/waiting: 2, no tasks in D state, no OOM.
So one unanswered cache-invalidation RPC to the VM blocks the watch recompute loop. That serializes every VolumeShare.Add, and that blocks every container start, including containers without any bind mounts (for example hello-world, with volumes []). There seems to be no timeout on the eventClient.Write call, so the state never recovers by itself.
A docker start of a container that had already been registered with the volume sharer did succeed during the hang. That is consistent with no new Add being needed for it.
Reproduction steps
I don't have a deterministic reproducer. The pattern:
- Hyper-V backend (
WslEngineEnabled=false),UseGrpcfuse=true, several host directories shared. - A dev container bind-mounts a large Windows project directory. Inside the container, Vite/Nuxt dev servers watch the bind mounts via inotify (HMR). Meanwhile the IDE, git, and package managers on the Windows side modify many files.
- After some hours, a container start hangs as described. From then on every new container start hangs, for example:
docker run --rm hello-world # hangs, container stays "Created" docker run -d --rm hello-world # hangs as well - Restarting Docker Desktop fixes it until the next occurrence.
Why not switch to the WSL 2 backend
The project depends on file-change events from Windows-side edits reaching the container (dev-server HMR). With WSL 2, bind mounts of Windows paths don't propagate inotify events. The Hyper-V/gRPC FUSE event path, which is the component that hangs here, is exactly what makes this workflow possible.
Attachments
grpcfuse-hang-goroutines.txt: the relevant goroutines from backend/stacks.log (full stacks) plus the VM FUSE connection state.
This report was drafted with the help of an AI assistant, based on local logs and a diagnostics dump. The findings were reviewed by the reporter.
Platform
Windows
Version information
Client:
Version: 29.8.0
API version: 1.56
Go version: go1.26.8
Git commit: 88096ef
Built: Thu Sep 3 21:53:38 2026
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.92.0 (240144)
Engine:
Version: 29.8.0
API version: 1.56 (minimum version 1.40)
Go version: go1.26.8
Git commit: 3ce5872
Built: Thu Sep 3 21:51:20 2026
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.3.5
GitCommit: 1294c24a7da8e5a793ed378161673abe94118892
runc:
Version: 1.5.1
GitCommit: v1.5.1-0-g8f2685a4
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Client:
Version: 29.8.0
Context: desktop-linux
Debug Mode: false
Plugins:
agent: Docker AI Agent Runner (Docker Inc.)
Version: v1.140.0
Path: C:\Program Files\Docker\cli-plugins\docker-agent.exe
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.31.0
Path: C:\Program Files\Docker\cli-plugins\docker-ai.exe
buildx: Docker Buildx (Docker Inc.)
Version: v0.37.1
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v5.5.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.47
Path: C:\Program Files\Docker\cli-plugins\docker-debug.exe
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.4.4
Path: C:\Program Files\Docker\cli-plugins\docker-desktop.exe
dhi: CLI for managing Docker Hardened Images (Docker Inc.)
Version: v0.0.7
Path: C:\Program Files\Docker\cli-plugins\docker-dhi.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.31
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.43.3
Path: C:\Program Files\Docker\cli-plugins\docker-mcp.exe
model: Docker Model Runner (Docker Inc.)
Version: v1.2.6
Path: C:\Program Files\Docker\cli-plugins\docker-model.exe
offload: Docker Offload (Docker Inc.)
Version: v0.6.27
Path: C:\Program Files\Docker\cli-plugins\docker-offload.exe
pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
Version: v0.2.2
Path: C:\Program Files\Docker\cli-plugins\docker-pass.exe
sandbox: "docker sandbox" is deprecated, use Docker Sandboxes instead (Docker Inc.)
Version: v0.13.0
Path: C:\Program Files\Docker\cli-plugins\docker-sandbox.exe
scout: Docker Scout (Docker Inc.)
Version: v1.24.0
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 64
Server Version: 29.8.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: 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 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1294c24a7da8e5a793ed378161673abe94118892
runc version: v1.5.1-0-g8f2685a4
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 7.0.12-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.61GiB
Name: docker-desktop
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
::1/128
127.0.0.0/8
Live Restore Enabled: false
Firewall Backend: iptables
Backend: Hyper-V (WslEngineEnabled=false), UseGrpcfuse=trueDiagnostics ID
No response
Activity
MarCezG commentedon Oct 15, 2026
Hello ! Thanks for reporting this, so far I have tried to reproduce it but not able to do so.
Are you able to reproduce the issue on a different machine? Also can you please expand on what the large Windows project directory size would be and also how many actions does - Windows side modify many files. - mean? Thanks!
HawkOnPK commentedon Oct 22, 2026
Thanks for looking into it, and sorry for the delay – I wanted to catch it again in the hung state.
1. Different machine: It has been reproduced independently on another machine and OS. The DDEV maintainer hit the
same hang three times on Docker Desktop for Linux 4.96.0 (Ubuntu 26.04, EC2) while testing ddev/ddev#8963.
Every
docker run/docker startgot stuck inCreated,docker ps/execstill worked, the backend goroutine dumpwas stuck in
recomputeWatches → watch.Invalidate, and only a Docker Desktop restart recovered it(ddev/ddev#8963 (comment)). So it is neither Windows/Hyper-V-specific nor tied
to my project.
2. Directory size: Size doesn't seem to matter. In the original occurrence the container bind-mounted a ~5.8 GB
project root with more than 160k files. In the new occurrence below it is a single directory of ~8.5k files / 376 MB.
It has now happened with three different projects.
3. File changes – correction to my original description: I could not tie it to a mass file change on the Windows
side. In the original occurrence, no git checkout/pull or package install ran in that window. The trigger is the
container start itself (
VolumeShare.Addfor the bind mount), not file churn.New occurrence on Docker Desktop 4.94.0 (241994), captured while hung
It still happens on 4.94.0: Oct 15 twice, Oct 20, and Oct 22.
What still works / what hangs
version,info,ps,images,volume/networkcreate/ls/rm,system df,events,stats,inspect/logsof other containers,create,rm, andrunwith no mount, a named volume, or tmpfs.A privileged
--pid=hosthelper container also works.run/startwith a bind mount of a Windows path, even a tiny temp directory (the container staysCreated),inspectof such a container, andsystem prune(container step).docker infocounts the hanging container as running.Where it hangs (kernel stacks read inside the VM via a privileged helper container)
newfstatat → vfs_statx → filename_lookup → lookup_fast → fuse_dentry_revalidate → __fuse_simple_request → request_wait_answer, one per hanging start (stat of the bind source under/host_mnt).dfandlsofstarted bycom.docker.diagnoseare stuck the same way./initd services, the only process holding/dev/fuse, has threads stuck in its own filesystem:create_write [grpcfuse]). Two more initd threads wait invsock_connectible_wait_data,and one thread is idle in
fuse_dev_do_read./sys/fs/fuse/connections/41/waitingkeeps growing (5 → 8). Nothing is in D state; all waiters are in S.>> POST .../startreaches dockerd and is neveranswered). The grpcfuse volume server and the fs server are idle, with no request handlers running and no
VolumeShare.Addblocked.inotify injection stalled for 1m0s; recovered injector (recovery #1/#2, … events dropped). The threads stuck inkern_pathare not released by that recovery.So it looks like the inotify injection path (
attrib_write/create_writein the grpcfuse module →kern_path)re-enters the grpcfuse filesystem that is served by the same initd process and never gets an answer. After that,
every path lookup on
/host_mnthangs. In my original report and in the DDEV case, the host side was waiting ineventClient.Writefor the VM to answer, which fits the same deadlock seen from the other end.Recovery: Restarting the engine from the tray needs a forced VM shutdown (
Shutdown of VM DockerDesktopVM did not complete within timeout. Forcing.). On Oct 15 the hang came back 17 minutes after such a restart, and only quittingDocker Desktop helped.
(Side note: the VM data disk happened to be full at the time, 95G with 0 available. Containers without bind mounts
still start fine, so I don't think it's related.)
Diagnostics ID taken while it was hung: 304350D9-E872-49A0-B666-35B689DFC040/20261022122345
This reply was drafted with the help of an AI assistant based on local logs, diagnostics dumps, and kernel stacks
read inside the VM; the reporter reviewed it.
test137E29B commentedon Nov 6, 2026
I've hit what looks like the same hang twice on Docker Desktop 4.98.0, on Windows 11 Pro (build 26200) with the Hyper-V backend and gRPC FUSE (engine 29.9.2, VM kernel 7.0.14-linuxkit). The second time I caught it while it was still hung.
Diagnostics ID:
F21073A3-7562-4091-AF5E-80936DBBB435/20261106203402, gathered at 20:34 UTC during the second hang. The stacks below come from an earlier local gather of the same hang, at 20:27.The stacks don't match the
recomputeWatches/VolumeShare.Addsignature reported here, so this may be a variation. I don't know the root cause.Second hang (2026-11-06, about 20:25 UTC, captured live)
What hung
D:never started. Two attempts, at 20:25:12 and 20:25:44, both hung. This timecontainers/createitself never returned, whereas the first hang got as far asCreated.What still worked
docker version,psandsystem df, and the Docker Desktop UI.What the diagnostics show
init.loghas>> POST /v1.56/containers/create?name=...-mountwith no matching<<for either probe./idlereports"apisInFlight":{"/v1.56/containers/create from Docker-Client/29.9.2 (windows)":2}./host_mntisfuse.grpcfuse. Its/sys/fs/fuse/connections/41/waitingwas 2, then rose to 4 as the gather's owndfandlsofgot stuck on it.VM kernel stacks
Windows backend stacks (649 goroutines, gathered 20:27)
recompute,InvalidateorVolumeShare.volume.(*watcher).handleEvents: select, 74 minvolume.(*eventQueue).removeUpTo: select, 74 minoswatcher.(*winfsnotifyWatcher).forwardEventsForever: chan receive, 74 minwinfsnotify.(*Watcher).readEvents:GetQueuedCompletionStatus, 60 minReadFilecalls, blocked for 1 min or 1156 min, so they don't line up with the hang.processUnaryRPCorprocessStreamingRPCgoroutines at all.startFsServer, looks like the file-sharing one. ItsAccepthad been waiting 75 min (about 19:12, the first bind mount since the VM started at 17:23) and itsloopyWriter60 min (about 19:27, the last file-sharing activity).hvsockConn.Readunderhttp2.readFrameHeader) had been waiting 30 min, since about 19:57. That's before the 20:25 probes, so it appears nothing arrived on this connection for them. I can't explain what arrived at about 19:57.So the visible block is dockerd's
statin the VM waiting on a FUSE reply duringcontainers/create. The hung requests don't appear to have reached the Windows backend, which points to the VM side or the hvsock path rather than a slow host file call. The diagnostics have no goroutine dump of initd, so I can't tell which.Possible pattern (untested, two hangs only): both hangs came on the first bind-mount use after about an hour without file-sharing traffic: 04:41 to 05:50 in the first, and at most 19:26 to 20:25 in the second. In the host log from 14:10 to 19:26, gaps of 16 min or less were fine. The one long gap (14:59 to 19:12) also ended fine, but it spanned a VM restart and the 19:12 connection looks new. Image builds also ran shortly before both hangs.
VM resources don't look like the cause:
file-nrwas 319 of 1.6M, there were 96fuse_inodeobjects, and the FUSEwaitingcount stayed belowcongestion_threshold(18).Workload: a Compose stack with many bind mounts of small config directories, plus test and
node_modulesfile activity in git worktrees onD:.First hang (2026-11-06, 05:50 to 07:16 UTC, no diagnostics ID)
I only found this issue afterwards, so this comes from the logs.
What hung
Created, on both C: and D:. That included two throwaway containers mounting one small directory each.inspect,rmiandcompose stopagainst the stuck containers hung too.What still worked
docker version,psandimage ls.tmpfsstarted within seconds, and stopping and removing them worked during the hang.Timeline (UTC)
From the logs
sbJoin,PUT /forwards/expose-container,init bind) didn't appear, and containerd connected a shim only at the release. In the run that worked, the follow-up came about 95 ms after the host registered the container.inotify injection stalledand found nothing, but those logs may have rotated.vm/dockerd.loghas no entries from this period, so I can't see inside the VM during the hang.1163 messages droppedat about 07:14:44, shortly before the release.Probably not related
Between the working start and the hang, I deleted some git worktrees that had been bind-mounted earlier (those mounts were already gone) and ran several long image builds. I don't know whether either matters. There was no bulk file change in the mounted directories that I know of.
Restarting Docker Desktop later cleared the leftover containers, and the same stack then started normally with the same bind mounts.