`up` hangs after "Container started" when creating a container with Podman on Windows (podman machine / WSL)

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
backend, devtools

Hướng nghiên cứu

Start by comparing the container creation path with the existing Podman hang reported in #1236, then trace what the CLI does after logging "Container started" on Windows with Podman. The report provides no source files or tests, so locate the creation flow and its tests from that log point. Done when a fresh container creation completes and the CLI proceeds to connect, including on Podman machine backed by WSL2.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

With Podman as container engine on Windows, creating a dev container never finishes: the log stops right after Container started, and nothing else is logged. The container itself is running (podman ps -a shows Up, podman inspect shows State.Running=true).

This looks like the same symptom as #1236 (hang after "Container started" on create/recreate with Podman), but on Windows with a Podman machine instead of Linux.

Environment
  • OS: Windows 11 Pro 26H2 (win32 10.0.26300 x64), Podman machine backed by WSL2
  • VS Code 1.145.2, Dev Containers extension 0.469.0, @devcontainers/cli 0.89.0 (Node v24.22.1)
  • Podman client 6.1.4 / server 6.0.2, buildah 1.45.2
  • dev.containers.dockerPath / --docker-path: podman
devcontainer.json
{
  "name": "Dev env",
  "image": "node:24-slim",
  "remoteUser": "node"
}
Steps to reproduce
  1. Open a folder with the devcontainer.json above in VS Code, with no previous containers or volumes for it.
  2. Run "Dev Containers: Reopen in Container".
  3. The window stays on "Starting container" indefinitely.

Reproducible every time on container creation: first build, "Rebuild Container" and "Rebuild Container Without Cache" all end in the same hang, even when no previous containers or volumes exist.

Workaround

Force-close the remote connection and run "Reopen in Container" again (normal, no rebuild). Since the container is already built, it starts without any problem and VS Code connects normally (in the successful log the CLI runs podman start on the existing container, inspects it and installs the VS Code Server).

Related
  • #1236
Ngôn ngữ chính
TypeScript
Star
3k
Fork
475
Merge trung bình
10 giờ 31 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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.