devcontainers / devcontainers/cli

`up`  hangs indefinitely when the container start event is missed (warm daemon + cached image)

オープン
#1,269 コメント 1 件 リアクション 0 件 担当者 1 名 @v-Kaniska244 が担当を希望しています GitHub で見る
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

**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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。