`up` hangs indefinitely when the container start event is missed (warm daemon + cached image)
@v-Kaniska244 is already working on this.
Since Jul 24, 2026.
Assessment
This issue has not been assessed yet.
Description
What happened
On a warm Docker daemon with an already-built/cached image, devcontainer up occasionally hangs forever. The container is created and running, but the CLI never proceeds to the lifecycle hooks.
Root cause
In spawnDevContainer , startEventSeen spawns docker events --filter event=start and then docker run follows almost immediately. With a cached image the container starts before the events listener has finished subscribing, so the start event is missed and awaited indefinitely.
Impact
up hangs with no timeout; lifecycle hooks ( onCreate / postCreate / postStart ) never run.
Environment
• @devcontainers/cli : 0.60.0
• Docker Engine: 29.6.1 (API 1.55), backend linux/amd64
• Node.js: v24.12.0 (from your Output pane), host Windows 10.0.26100
• Repro: warm daemon, image already cached, then devcontainer up
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 461
- Avg merge
- 18m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from devcontainers/cli
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
devcontainers/cli#1203 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
devcontainers/cli#1178 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
devcontainers/cli#1308 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
devcontainers/cli#1307 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
devcontainers/cli#1305 ·
All issues in devcontainers/cli
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vicharanashala/fln#563 ·