Skip to content

[Windows] Docker VMM (4.100.0): container start with a published port hangs forever once a user-defined network is in use #869

Open

Description

@ferras777

Description

Follow-up to #820 (closed as fixed in 4.100). On 4.100.0 the guest RCU stall from #820 is gone and the engine stays responsive (docker ps, docker version, docker info answer instantly), but POST /containers/{id}/start for a container that publishes a port never returns once a user-defined network has an endpoint. The container stays Created, and every later start queues behind the stuck one until Docker Desktop is restarted. Every docker compose up with published ports hangs, because compose always creates its own network.

Minimal repro (fresh Docker Desktop restart before each sequence):

docker network create vmmtest
docker run -d --network vmmtest -p 18081:80 alpine:3 sleep 600   # hangs (also with postgres:18.4)
docker run -d --network vmmtest alpine:3 sleep 600               # OK, 1s
docker run -d -p 18082:80 alpine:3 sleep 600                     # hangs, default bridge
docker run -d -p 15432:5432 -e POSTGRES_PASSWORD=x postgres:18.4 # OK, 1s
docker run -d -p 5432:5432  -e POSTGRES_PASSWORD=x postgres:18.4 # OK, two published ports on bridge

Only the default bridge with published ports works. As soon as a user-defined network has (or gets) an endpoint, the next start with -p hangs, and so does every start after it, even ones without ports. Same commands work on the WSL2 engine of the same install.

Where it hangs: the host-side apiproxy (log/host/monitor.log) receives the start, the port exposer runs its pre-approval step, and then nothing happens. The request never reaches the guest apiproxy (log/vm/init.log has no line for that container's /start). A successful start shows the same pre-approval step, followed by a second exposer.Add with the container IP and the << response:

# stuck (kafka, compose network adf_qa)
11:30:43.080 apiproxy >> POST /v1.56/containers/a78b72b8.../start        <- no "<<", not forwarded to guest
11:30:43.080 ports        exposer.Approve(a78b72b8..., /kafka-0.kafka-headless, [TCP 0.0.0.0:29090])
11:30:43.080 ports        exposer.Add(a78b72b8..., [TCP 0.0.0.0:29090 -> 127.0.0.1:0])
11:30:43.080 sailorforward 0.0.0.0:29090->127.0.0.1:0 started
11:30:43.080 ports        exposer.Remove(a78b72b8...)
11:30:43.081 sailorforward 0.0.0.0:29090->127.0.0.1:0 stopped

# OK (postgres, default bridge)
11:30:26.639 apiproxy >> POST /v1.56/containers/c2294dc7.../start
11:30:26.671 ports        exposer.Add(... -> 127.0.0.1:0) / Remove(...)   (same pre-approval)
11:30:26.884 ports        exposer.Add(c2294dc7..., [TCP 0.0.0.0:5432 -> 172.17.0.3:5432])
11:30:26.884 sailorforward 0.0.0.0:5432->172.17.0.3:5432 started
11:30:26.884 apiproxy << POST /v1.56/containers/c2294dc7.../start

No rcu_preempt detected stalls / __send_to_port / soft lockup in the guest log, so this is not #820. The host port is free (netstat -ano).

Expected: the start is forwarded to the guest dockerd and the port is published, as on WSL2 or on the default bridge.

Versions

  • Docker Desktop 4.100.0 (Windows, per-user install), engine linux/sailor (Docker VMM), guest kernel 7.0.14-linuxkit
  • Docker Engine 29.9.3, Compose v5.7.1
  • Windows 11 Pro 10.0.26300
  • Daemon "debug": true

Diagnostics ID

63CAA24B-F384-4F38-BB55-E02F673CB33F/20261120115158 — gathered while m-alpine-d-bridge-port was stuck in start and n-alpine-d-usernet-port queued behind it.

Activity

  1. monosans commented on Nov 22, 2026

    @monosans

    Same stuck start and queue here on 4.100.0 (engine 29.9.3, Docker VMM, Windows 11 LTSC 10.0.26100), but in my case it's mounts, not ports. No published ports and no user-defined network involved.

    Since Nov 21 any container with a named volume or a bind mount stays in Created (a fresh empty volume too), and every start after it hangs, even ones without mounts. In log/host/com.docker.backend.exe.log the last line for the stuck container is com.docker.krun: registering container <id> with volumes [host=...]. The com.docker.backend: registering line that comes next on a good start never shows up. Named volumes still worked on Nov 20.

    It's not fully deterministic though: once a plain run with no mounts hung right after a fresh start, and --tmpfs hung as well. A Windows reboot doesn't help. docker desktop stop then docker desktop start clears the queue, docker desktop restart sometimes doesn't. BuildKit builds keep working, so for now I run without mounts and docker cp the results out.

  2. mat007 commented on Nov 25, 2026

    @mat007
    Member

    Hey! We think we have fixed this for the upcoming 4.101.0 release coming up next week.
    In the meanwhile I can offer you a build with the fix if you want to test it out.

  3. ferras777 commented on Nov 25, 2026

    @ferras777
    Author

    Tested the build with the fix (4.102.0.247405) on Docker VMM: the repro from the description and our real compose stack with Kafka and published ports on a user-defined network now start fine. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions