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

Aperta
#1,355 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
backend, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
3k
Fork
475
Merge medio
10h 31m
PR unite (30g)
9

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devcontainers/cli

Tutte le issue di devcontainers/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.