eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.05k stars 2.5k forks source link

Theia devcontainers doesnt work with podman socket #14099

Open shdwchn10 opened 2 months ago

shdwchn10 commented 2 months ago

Bug Description:

Steps to Reproduce:

  1. Enable podman socket: systemctl --user start podman.socket
  2. Export podman export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
  3. Create simple devcontainer.json like this:
    {
    "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
    "forwardPorts": [3000]
    }
  4. Reopen in Container
  5. Nothing happens, but container was created. podman ps:
    1a4636f12a30  mcr.microsoft.com/devcontainers/typescript-node:0-18  node                  27 seconds ago  Up 27 seconds                                                  strange_ritchie

Screencast

Screencast from 2024-08-31 08-53-54.webm

Additional Information

shdwchn10 commented 2 months ago

Error from log:

2024-09-01T16:21:17.031Z root ERROR Error: (HTTP code 500) server error - can't talk to a V1 container registry 
    at /tmp/.mount_TheiaIlqrpp7/resources/app/lib/backend/268.js:2:782719
    at s (/tmp/.mount_TheiaIlqrpp7/resources/app/lib/backend/268.js:2:782652)
    at IncomingMessage.<anonymous> (/tmp/.mount_TheiaIlqrpp7/resources/app/lib/backend/268.js:2:782580)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1368:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)