Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-3075

[containers/podman] Dev Container stuck indefinitely during build on podman

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-container-tools
    • 3
    • RUN 272

      [2980510212] Upstream Reporter: codeblue122
      Upstream issue status: Closed
      Upstream description:

      Issue Description

      devcontainer build initiated through ssh from vscode gets stuck indefinitely.

      Steps to reproduce the issue

      Steps to reproduce the issue

      1. Workflow in vscode "Connect to remote Development Workspaces" > "Git clone repo" after ssh through vscode
      2. To over come following error in initial build,
      mkdir: cannot create directory '/home/vscode/.vscode-server': Read-only file system

      I have added to container.json

              "--userns=keep-id",
              "--group-add=keep-groups",
              "--security-opt=label=disable",
              "--mount", "type=tmpfs,destination=/home/vscode/.vscode-server",
              "--mount", "type=bind,source=${localWorkspaceFolder},target=/workspace:Z"

      Not sure if all options needed or other better way.

      1. in VScode "rebuild and reopen devcontainer"

      Describe the results you received

      Describe the results you received

      Build stuck indefinitely at

      Using cached extensions scan result system file:///vscode/vscode-server/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions
      [37565 ms] Killed
      [76727 ms] Start: Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/vscode/.vscode-server/extensionsCache' && cp 'github.copilot-1.297.0.sigzip' '/vscode/vscode-server/extensionsCache'
      [76770 ms] 
      [76770 ms] 
      [76770 ms] Start: Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +500 | xargs rm -f

      Describe the results you expected

      Describe the results you expected

      Expected to build and provide container access.

      podman info output

      Remote 
      Automotive Stream Distribution release 9 (running on Qemu)
      rpm -q podman
      podman-4.9.2-1.el9.x86_64
      
      Local Fedora
      Fedora release 39 (Thirty Nine)
      code-1.98.2-1741788968.el8.x86_64
      Devcontainers Extension 0.401.0
      

      Podman in a container

      No

      Privileged Or Rootless

      None

      Upstream Latest Release

      No

      Additional environment details

      Remote OS on qemu auto-osbuild-qemu-autosd9-developer-regular (https://autosd.sig.centos.org/AutoSD-9/nightly/sample-images/)

      If running on macOS Instructions at bottom https://sig.centos.org/automotive/getting-started/getting-started-on-macos/#quick-start-building-customized-autosd-images-in-a-qemu-vm

      Additional information

      Current logs

      velocitas_devcontainer.log


      Upstream URL: https://github.com/containers/podman/issues/25834

              mloriedo Mario Loriedo
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: