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

Đang mở
#1,269 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@v-Kaniska244 đang làm issue này rồi.

Từ ngày 24/7/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
3k
Fork
461
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của devcontainers/cli

Tất cả issue của devcontainers/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.