Skip to content

[Windows, Hyper-V, gRPC FUSE] Container starts hang forever: VolumeShare.Add blocked behind recomputeWatches → eventClient.Write never answered by VM #706

Open

Description

@HawkOnPK

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.

  1. 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.
  2. On the server side, all VolumeShare.Add / VolumeShare.Remove handlers wait in volume.(*svr).recomputeWatchesSync (chan receive). Four handlers were waiting for 2 to 6 minutes. The resyncer (resyncer.(*volumeResource).Stop → VolumeShare.Remove) was stuck too.
  3. The single recompute loop volume.(*svr).Run.func3 → recomputeWatches → (*watch).Invalidate → pb.(*eventClient).Write had been waiting 6 minutes for the response header of the Write RPC to the VM.
  4. 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:

  1. Hyper-V backend (WslEngineEnabled=false), UseGrpcfuse=true, several host directories shared.
  2. 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.
  3. 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
    
  4. 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.

grpcfuse-hang-goroutines.txt


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=true

Diagnostics ID

No response

Activity

  1. added theissue type on Sep 25, 2026
  2. MarCezG commented on Oct 15, 2026

    @MarCezG

    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!

  3. HawkOnPK commented on Oct 22, 2026

    @HawkOnPK
    Author

    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 start got stuck in Created, docker ps/exec still worked, the backend goroutine dump
    was 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.Add for 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

    • Works instantly: version, info, ps, images, volume/network create/ls/rm, system df, events, stats,
      inspect/logs of other containers, create, rm, and run with no mount, a named volume, or tmpfs.
      A privileged --pid=host helper container also works.
    • Hangs: any run/start with a bind mount of a Windows path, even a tiny temp directory (the container stays
      Created), inspect of such a container, and system prune (container step).
      docker info counts the hanging container as running.

    Where it hangs (kernel stacks read inside the VM via a privileged helper container)

    • dockerd: 2 threads in 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).
      df and lsof started by com.docker.diagnose are stuck the same way.
    • /initd services, the only process holding /dev/fuse, has threads stuck in its own filesystem:
      request_wait_answer ← __fuse_simple_request ← fuse_dentry_revalidate ← lookup_fast ← link_path_walk
      ← path_lookupat ← filename_lookup ← kern_path ← attrib_write [grpcfuse] ← proc_reg_write
      
      (another one identical, with create_write [grpcfuse]). Two more initd threads wait in vsock_connectible_wait_data,
      and one thread is idle in fuse_dev_do_read.
    • /sys/fs/fuse/connections/41/waiting keeps growing (5 → 8). Nothing is in D state; all waiters are in S.
    • Host side on 4.94: the start request is forwarded normally (>> POST .../start reaches dockerd and is never
      answered). The grpcfuse volume server and the fs server are idle, with no request handlers running and no
      VolumeShare.Add blocked.
    • About 6 and 23 minutes after the first start hung, the VM logged
      inotify injection stalled for 1m0s; recovered injector (recovery #1/#2, … events dropped). The threads stuck in
      kern_path are not released by that recovery.

    So it looks like the inotify injection path (attrib_write/create_write in 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_mnt hangs. In my original report and in the DDEV case, the host side was waiting in
    eventClient.Write for 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 quitting
    Docker 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.

  4. test137E29B commented on Nov 6, 2026

    @test137E29B

    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.Add signature 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

    • A probe container with a bind mount from D: never started. Two attempts, at 20:25:12 and 20:25:44, both hung. This time containers/create itself never returned, whereas the first hang got as far as Created.
    • The last file-sharing activity in the host log was at 19:26:41, when the stack's mounts were unwatched, so the hang began between then and 20:25.

    What still worked

    • docker version, ps and system df, and the Docker Desktop UI.
    • Containers with no bind mount, including one created just before each hung probe.

    What the diagnostics show

    • init.log has >> POST /v1.56/containers/create?name=...-mount with no matching << for either probe.
    • The backend /idle reports "apisInFlight":{"/v1.56/containers/create from Docker-Client/29.9.2 (windows)":2}.
    • /host_mnt is fuse.grpcfuse. Its /sys/fs/fuse/connections/41/waiting was 2, then rose to 4 as the gather's own df and lsof got stuck on it.
    • The FUSE reader threads in initd are idle, so requests are unanswered while the readers wait for new work. My reading is that replies never came back, but I can't confirm that from here.
    VM kernel stacks
    dockerd (threads 340, 626, state S)
    request_wait_answer < __fuse_simple_request < fuse_dentry_revalidate < lookup_fast
    < link_path_walk < path_lookupat < filename_lookup < vfs_statx < vfs_fstatat < __do_sys_newfstatat
    
    df (state D), lsof (state S)
    request_wait_answer < __fuse_simple_request < fuse_do_getattr < vfs_getattr_nosec < vfs_statx
    
    initd (threads 213, 307)
    fuse_dev_do_read < fuse_dev_read < vfs_read
    

    Windows backend stacks (649 goroutines, gathered 20:27)

    • No hits for recompute, Invalidate or VolumeShare.
    • The grpcfuse goroutines are all parked, with none in a request handler:
      • volume.(*watcher).handleEvents: select, 74 min
      • volume.(*eventQueue).removeUpTo: select, 74 min
      • oswatcher.(*winfsnotifyWatcher).forwardEventsForever: chan receive, 74 min
      • winfsnotify.(*Watcher).readEvents: GetQueuedCompletionStatus, 60 min
    • No goroutine is in a Windows stat or open call. The only file calls are five ReadFile calls, blocked for 1 min or 1156 min, so they don't line up with the hang.
    • There are no processUnaryRPC or processStreamingRPC goroutines at all.
    • The only gRPC connection over hvsock, served by startFsServer, looks like the file-sharing one. Its Accept had been waiting 75 min (about 19:12, the first bind mount since the VM started at 17:23) and its loopyWriter 60 min (about 19:27, the last file-sharing activity).
    • Its reader (hvsockConn.Read under http2.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 stat in the VM waiting on a FUSE reply during containers/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-nr was 319 of 1.6M, there were 96 fuse_inode objects, and the FUSE waiting count stayed below congestion_threshold (18).

    Workload: a Compose stack with many bind mounts of small config directories, plus test and node_modules file activity in git worktrees on D:.

    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

    • Every container start with a bind mount of a Windows path stayed in Created, on both C: and D:. That included two throwaway containers mounting one small directory each.
    • inspect, rmi and compose stop against the stuck containers hung too.

    What still worked

    • docker version, ps and image ls.
    • Containers with no mount or tmpfs started within seconds, and stopping and removing them worked during the hang.
    • Stats calls against the stuck containers piled up, but the engine stayed responsive.

    Timeline (UTC)

    • 04:40: the same compose stack, with the same bind mounts, started normally.
    • 05:50:37: the first bind-mounted start reached the VM. The backend had been up for about 4h40m, and no bind-mounted container had started since about 04:41.
    • 06:01 and 06:02: the two throwaway containers hung the same way, one on D: and one on C:.
    • 07:16:18.9: all three starts released within about 15 ms of each other, and every pending call completed. So it recovered by itself after about 85 minutes, with no restart. Nothing obvious in the backend log explains the release.

    From the logs

    • The host backend registered the start, and the request reached the VM's API proxy. The usual follow-up calls (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.
    • I searched the VM logs still on disk for inotify injection stalled and found nothing, but those logs may have rotated.
    • vm/dockerd.log has no entries from this period, so I can't see inside the VM during the hang.
    • The kernel log reader reported 1163 messages dropped at about 07:14:44, shortly before the release.

    Probably not related

    • VM memory (16 GB, 16 CPUs) and disk (21.9 GB of build cache on a 64 GB disk) weren't under pressure.
    • I found no Resource Saver pause, and the VM's time-sync pings kept arriving every 30 s through the hang.

    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.

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