Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devcontainers Podman 5.3.1 WSL2 windows 11 #10586

Open
6 tasks done
nmwael opened this issue Dec 20, 2024 · 0 comments
Open
6 tasks done

devcontainers Podman 5.3.1 WSL2 windows 11 #10586

nmwael opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
ssh Issue in vscode-remote SSH

Comments

@nmwael
Copy link

nmwael commented Dec 20, 2024

Is there an existing issue for this bug?

  • I have searched the existing open issues and found none that apply.
  • If I find any issue of interest that is related or closed, I will included a link to it in this issue.

Required Troubleshooting Steps

  • I have read and performed the troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
  • My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
  • I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar

[Optional] Diagnose with Copilot

I did not ask the @remote-ssh participant for help

In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?

I did not try step 2 of the troubleshooting steps

Remote-SSH Log

Remote-SSH Log

[81 ms] Dev Containers 0.395.0 in VS Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f).
[80 ms] Start: Resolving Remote
[131 ms] Start: Run: wsl -d podman-machine-default -e /bin/sh -c echo ~
[253 ms] Start: Run: wsl -d podman-machine-default -e /bin/sh -c cd '/home/user' && /bin/sh
[259 ms] Start: Run in host: id -un
[314 ms] user
[314 ms] 
[315 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'user' || grep -E '^user|^[^:]*:[^:]*:user:' /etc/passwd || true)
[317 ms] Start: Run in host: echo ~
[318 ms] /home/user
[318 ms] 
[318 ms] Start: Run in host: test -f '/home/user/.vscode-server/cli/servers/Stable-fabdb6a30b49f79a7aba0f2ad9df9b399473380f/server/node'
[319 ms] 
[319 ms] 
[319 ms] Exit code 1
[320 ms] Start: Run in host: test -f '/home/user/.vscode/cli/servers/Stable-fabdb6a30b49f79a7aba0f2ad9df9b399473380f/server/node'
[320 ms] 
[320 ms] 
[321 ms] Exit code 1
[321 ms] Start: Run in host: test -f '/home/user/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/node'
[321 ms] 
[321 ms] 
[321 ms] Exit code 1
[322 ms] Start: Run in host: test -f '/home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/node'
[322 ms] 
[323 ms] 
[323 ms] Exit code 1
[323 ms] Start: Run in host: uname -s
[325 ms] Linux
[325 ms] 
[325 ms] Start: Run in host: uname -m
[326 ms] x86_64
[326 ms] 
[326 ms] Start: Run in host: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[328 ms] NAME="Fedora Linux"
VERSION="40 (Container Image)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Container Image"
VARIANT_ID=container
[328 ms] 
[790 ms] Start: Installing VS Code Server
[790 ms] Start: Run in host: mkdir -p /home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f_1734676784192
[793 ms] 
[793 ms] 
[793 ms] Start: Run in host: (dd iflag=fullblock bs=8192 count=12036; dd iflag=fullblock bs=4096 count=1) | tar --no-same-owner -x -C /home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f_1734676784192
[1018 ms] 12036+0 records in
12036+0 records out
98598912 bytes (99 MB, 94 MiB) copied, 0.22157 s, 445 MB/s
[1019 ms] 1+0 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 5.363e-05 s, 76.4 MB/s
[1019 ms] 
[1019 ms] 
[1019 ms] Start: Run in host: mv -n /home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f_1734676784192/* /home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f && rmdir /home/user/.vscode-remote-containers/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f_1734676784192
[1022 ms] 
[1022 ms] 
[1023 ms] Start: Run in host: test -f '/home/user/.vscode-remote-containers/dist/vscode-remote-containers-server-0.395.0.js'
[1023 ms] 
[1023 ms] 
[1023 ms] Exit code 1
[1024 ms] Start: Run in host: mkdir -p '/home/user/.vscode-remote-containers/dist'
[1025 ms] 
[1025 ms] 
[1025 ms] Start: Run in host: cat <<'EOF-/home/user/.vscode-remote-containers/dist/vscode-remote-containers-server-0.395.0.js' >/home/user/.vscode-remote-containers/dist/vscode-remote-containers-server-0.395.0.js_1734676784427
[1042 ms] 
[1042 ms] 
[1044 ms] userEnvProbe: loginInteractiveShell (default)
[1044 ms] userEnvProbe: not found in cache
[1044 ms] userEnvProbe shell: /bin/bash
[3049 ms] Start: Run in Host: /bin/sh 
[3052 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[3195 ms] userEnvProbe is taking longer than 2 seconds. Process tree:
  454: /bin/bash -lic echo -n a55fd34f-831d-4b26-b877-97a98b86301e; cat /proc/self/environ; echo -n a55fd34f-831d-4b26-b877-97a98b86301e 
    470: /bin/bash /usr/local/bin/enterns 
      475: sudo nsenter -m -p -t 18 --wd=/home/user su -l user 
        477: sudo nsenter -m -p -t 18 --wd=/home/user su -l user 
          478: nsenter -m -p -t 18 --wd=/home/user su -l user 
            479: su -l user 
              480: -bash 
[11054 ms] userEnvProbe is taking longer than 10 seconds. Avoid waiting for user input in your shell's startup scripts. Continuing.
[11057 ms] Start: Check Docker is running
[11057 ms] Start: Run: podman version
[11363 ms] Client:       Podman Engine
Version:      5.3.1
API Version:  5.3.1
Go Version:   go1.23.3
Git Commit:   4cbdfde5d862dcdbe450c0f1d76ad75360f67a3c
Built:        Thu Nov 21 16:45:23 2024
OS/Arch:      windows/amd64

Server:       Podman Engine
Version:      5.3.1
API Version:  5.3.1
Go Version:   go1.22.7
Built:        Thu Nov 21 01:00:00 2024
OS/Arch:      linux/amd64
[11369 ms] Start: Run: podman volume ls -q
[11642 ms] Start: Run: podman volume create --label vsch.local.repository=https://github.com/[redacted]/tree/870_devcontainer --label vsch.local.repository.unique=true --label vsch.local.repository.branch=870_devcontainer [redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6
[11946 ms] ProxyResolver#loadSystemCertificates count
[11949 ms] ProxyResolver#loadSystemCertificates count filtered
[11958 ms] Start: Run: podman build -f C:\Users\[redacted]\AppData\Local\Temp\vsch\bootstrap-image\0.395.0\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\[redacted]\AppData\Local\Temp\vsch\bootstrap-image\0.395.0
STEP 1/9: FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.20
Trying to pull mcr.microsoft.com/devcontainers/base:0-alpine-3.20...
Getting image source signatures
Copying blob sha256:2a15ab263bdfbf67db2a85e7d4f83b4e9740bdfbc5e253df81fc934d4e892c63
Copying blob sha256:87dffdaee0b6c8af7a276cdc162215e7d9c55a0a0b742149a785cdfef7118ff3
Copying blob sha256:3cdff9e33f37d7d590f46c9f39a28c5059bbeea159e2f59bc7b24b64edee11d7
Copying blob sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d9217b77e1087f
Copying blob sha256:3f72e2f1b3f3166b18679af2d24f388f7b592a0673c636c8b4e3a06daaacab5c
Copying blob sha256:1ac829ce5af377b2886536ee2fd7f0b09c66728f5f503c6500aeb42641e8c992
Copying blob sha256:a9bdcaa5c876ae86e211439ceb2ba0c186e302a1e44b8d4796748b149947c67f
Copying config sha256:ea8c68b1a59c8bc32146840d615ec9f2d84ac2606e9d77e131f7b3747d39315a
Writing manifest to image destination
STEP 2/9: COPY host-ca-certificates.crt /tmp/host-ca-certificates.crt
--> bd7bcc4b28c6
STEP 3/9: RUN cat /tmp/host-ca-certificates.crt >> /etc/ssl/certs/ca-certificates.crt
--> 7b3976d7849b
STEP 4/9: RUN csplit -f /usr/local/share/ca-certificates/host-ca-certificate- -b '%02d.pem' -z -s /tmp/host-ca-certificates.crt '/-----BEGIN CERTIFICATE-----/' '{*}'
--> 244aaa9db8d5
STEP 5/9: ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
--> 3fafc11886e0
STEP 6/9: RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3.15/main" >> /etc/apk/repositories
--> 8f1632c90443
STEP 7/9: RUN apk add --no-cache        git-lfs         nodejs  python3         npm     make    g++     docker-cli      docker-cli-buildx       docker-cli-compose      openssh-client-default@old      ;
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
(1/23) Installing docker-cli (26.1.5-r0)
(2/23) Installing docker-cli-buildx (0.14.0-r3)
(3/23) Installing docker-cli-compose (2.27.0-r3)
(4/23) Installing git (2.45.2-r0)
(5/23) Installing git-bash-completion (2.45.2-r0)
(6/23) Installing git-init-template (2.45.2-r0)
(7/23) Installing git-lfs (3.5.1-r4)
Executing git-lfs-3.5.1-r4.post-install
Git LFS initialized.
(8/23) Installing git-lfs-bash-completion (3.5.1-r4)
(9/23) Installing ada-libs (2.7.8-r0)
(10/23) Installing libbase64 (0.5.2-r0)
(11/23) Installing icu-data-en (74.2-r0)
Executing icu-data-en-74.2-r0.post-install
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
(12/23) Installing icu-libs (74.2-r0)
(13/23) Installing nodejs (20.15.1-r0)
(14/23) Installing npm (10.9.1-r0)
(15/23) Installing npm-bash-completion (10.9.1-r0)
(16/23) Installing libcrypto1.1@old (1.1.1w-r1)
(17/23) Downgrading openssh-keygen@old (9.7_p1-r4 -> 8.8_p1-r1)
(18/23) Downgrading openssh-client-common@old (9.7_p1-r4 -> 8.8_p1-r1)
(19/23) Downgrading openssh-client-default@old (9.7_p1-r4 -> 8.8_p1-r1)
(20/23) Installing perl-git (2.45.2-r0)
(21/23) Installing git-perl (2.45.2-r0)
(22/23) Installing git-zsh-completion (5.9-r3)
(23/23) Installing git-lfs-zsh-completion (3.5.1-r4)
Executing busybox-1.36.1-r29.trigger
OK: 758 MiB in 213 packages
--> 38592df1fe5d
STEP 8/9: RUN npm config set cafile /etc/ssl/certs/ca-certificates.crt && cd && npm i node-pty || echo "Continuing without node-pty."

added 2 packages in 5s
--> 6fe2934af1d4
STEP 9/9: COPY .vscode-remote-containers /root/.vscode-remote-containers
COMMIT vsc-volume-bootstrap
--> 81e855e38ba0
Successfully tagged localhost/vsc-volume-bootstrap:latest
81e855e38ba02ffad13c3d04c8dacaf5dd95a4dfa2eb3e51f3e1f303c16150f0
[34274 ms] Cloning Github repository: [redacted] into /workspaces/[redacted]

[34274 ms] Start: Run: podman run -d --mount type=volume,src=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,dst=/workspaces -v /run/user/1000/podman/podman.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[34677 ms] Start: Run in container: /bin/sh
[34698 ms] Start: Launching Dev Containers helper.
[34698 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[34699 ms] ssh-agent: SSH_AUTH_SOCK not set on wsl host.
[34699 ms] X11 forwarding: DISPLAY not set on local host.
[34699 ms] X11 forwarding: DISPLAY not set on wsl host.
[34699 ms] Start: Run in container: gpgconf --list-dirs
[34995 ms] sysconfdir:/etc/gnupg
bindir:/usr/bin
libexecdir:/usr/libexec
libdir:/usr/lib/gnupg
datadir:/usr/share/gnupg
localedir:/usr/share/locale
socketdir:/root/.gnupg
dirmngr-socket:/root/.gnupg/S.dirmngr
keyboxd-socket:/root/.gnupg/S.keyboxd
agent-ssh-socket:/root/.gnupg/S.gpg-agent.ssh
agent-extra-socket:/root/.gnupg/S.gpg-agent.extra
agent-browser-socket:/root/.gnupg/S.gpg-agent.browser
agent-socket:/root/.gnupg/S.gpg-agent
homedir:/root/.gnupg
[34996 ms] 
[34996 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[35045 ms] 
[35045 ms] 
[35045 ms] Exit code 2
[35045 ms] Start: Run in container: grep -e '^s*use-keyboxds*$' '/root/.gnupg/common.conf' 2>/dev/null
[35095 ms] 
[35095 ms] 
[35095 ms] Exit code 2
[35096 ms] Start: Run: gpgconf --list-dirs
[35141 ms] sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
bindir:C%3a\Program Files (x86)\GnuPG\bin
libexecdir:C%3a\Program Files (x86)\GnuPG\bin
libdir:C%3a\Program Files (x86)\GnuPG\lib\gnupg
datadir:C%3a\Program Files (x86)\GnuPG\share\gnupg
localedir:C%3a\Program Files (x86)\GnuPG\share\locale
socketdir:C%3a\Users\[redacted]\AppData\Local\gnupg
dirmngr-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.dirmngr
keyboxd-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.keyboxd
agent-ssh-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent.ssh
agent-extra-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent.extra
agent-browser-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent.browser
agent-socket:C%3a\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent
homedir:C%3a\Users\[redacted]\AppData\Roaming\gnupg
[35141 ms] 
[35146 ms] Start: Run in container: test -f '/root/.gnupg/pubring.kbx'
[35147 ms] 
[35147 ms] 
[35147 ms] Exit code 1
[35148 ms] Start: Run in container: test -f '/root/.gnupg/pubring.gpg'
[35195 ms] 
[35195 ms] 
[35195 ms] Exit code 1
[35196 ms] Start: Run in container: test -f '/root/.gnupg/trustdb.gpg'
[35245 ms] 
[35245 ms] 
[35245 ms] Exit code 1
[35246 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg'
[35246 ms] gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to local host (C:\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent.extra).
[35246 ms] GPG keyboxd: Socket in container (/root/.gnupg/S.keyboxd) forwarded to local host (C:\Users\[redacted]\AppData\Local\gnupg\S.keyboxd).
[35295 ms] 
[35295 ms] 
[35296 ms] Start: Run in container: (command -v 'docker' || command -v 'oras' || command -v 'skopeo') >/dev/null 2>&1
[35345 ms] 
[35345 ms] 
[35345 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg' && echo '
[35346 ms] Start: Run in container: /bin/sh
[35366 ms] Start: Run in container: echo ~
[35395 ms] 
[35395 ms] 
[35396 ms] Start: Run: gpg --export-ownertrust
[35442 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[35675 ms] /root
[35675 ms] 
[35675 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-7947182d-ddbb-46af-9192-f93ced6155bd.js' >/tmp/vscode-remote-containers-7947182d-ddbb-46af-9192-f93ced6155bd.js
[35725 ms] 
[35725 ms] 
[35757 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-7947182d-ddbb-46af-9192-f93ced6155bd.js' >/tmp/vscode-remote-containers-server-7947182d-ddbb-46af-9192-f93ced6155bd.js_1734676819159
[35805 ms] 
[35805 ms] 
[35807 ms] Start: Run in container: # Test for /root/.gitconfig and git
[35809 ms] 
[35809 ms] 
[35809 ms] Start: Run in container: # Copy C:\Users\[redacted]\.gitconfig to /root/.gitconfig
[35812 ms] 
[35812 ms] 
[35813 ms] Start: Run in container: # Cleaning up git config
[35856 ms] Removing Git config key: gpg.program = C:\Program Files (x86)\GnuPG\bin\gpg.exe
[35856 ms] 
[35856 ms] Start: Run: git config --global --get gpg.ssh.allowedSignersFile
[35856 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-7947182d-ddbb-46af-9192-f93ced6155bd.js git-credential-helper $*; }; f' || true
[35905 ms] 
[35905 ms] 
[35905 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=0 2>/dev/null; dd iflag=fullblock bs=222 count=1 2>/dev/null) | gpg --import-ownertrust
[35955 ms] 
[35955 ms] gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: inserting ownertrust of 6
gpg: inserting ownertrust of 6
[35955 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[36015 ms] 
[36015 ms] 
[36015 ms] Start: Run in container: # Copy C:\Users\[redacted]\.ssh\known_hosts to /root/.ssh/known_hosts
[36018 ms] 
[36019 ms] 
[36375 ms] Start: Run in container: git clone --depth 1 --branch 870_devcontainer https://github.com/[redacted]/[redacted].git .
Cloning into '.'...
remote: Enumerating objects: 714, done.
remote: Counting objects: 100% (714/714), done.
remote: Compressing objects: 100% (579/579), done.
remote: Total 714 (delta 108), reused 504 (delta 53), pack-reused 0 (from 0)
Receiving objects: 100% (714/714), 2.12 MiB | 14.47 MiB/s, done.
Resolving deltas: 100% (108/108), done.
[38662 ms] Start: Run in container: cat /workspaces/[redacted]/.devcontainer/devcontainer.json 2>/dev/null
[38665 ms] Start: Run in container: cat /workspaces/[redacted]/.devcontainer/devcontainer.json 2>/dev/null
[38731 ms] Start: Run in container: cat <<'EOF-/tmp/devcontainer-c7e09a6f-7edf-42b7-89dc-5d44ae09aaf6.json' >/tmp/devcontainer-c7e09a6f-7edf-42b7-89dc-5d44ae09aaf6.json_1734676822133
[38785 ms] 
[38785 ms] 
[39547 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted] --filter label=vsch.quality=stable
[39907 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted] --filter label=devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json
[40268 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted]
[40648 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted]
[40975 ms] Running Dev Containers CLI:   up --container-session-data-folder /tmp/devcontainers-e7826b00-816a-446a-9f53-d9b4ad787bfd1734676781423 --workspace-folder /workspaces/[redacted] --workspace-mount-consistency cached --gpu-availability detect --id-label vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --id-label vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --id-label vsch.local.repository.folder=[redacted] --id-label devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/[redacted]/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-c7e09a6f-7edf-42b7-89dc-5d44ae09aaf6.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,target=/workspaces,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root --terminal-columns 215 --terminal-rows 21 --include-configuration --include-merged-configuration
[42073 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-e7826b00-816a-446a-9f53-d9b4ad787bfd1734676781423 --workspace-folder /workspaces/[redacted] --workspace-mount-consistency cached --gpu-availability detect --id-label vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --id-label vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --id-label vsch.local.repository.folder=[redacted] --id-label devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/[redacted]/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-c7e09a6f-7edf-42b7-89dc-5d44ae09aaf6.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,target=/workspaces,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root --terminal-columns 215 --terminal-rows 21 --include-configuration --include-merged-configuration
[42537 ms] @devcontainers/cli 0.72.0. Node.js v20.15.1. linux 5.15.153.1-microsoft-standard-WSL2 x64.
[42537 ms] Start: Run: docker buildx version
[42585 ms] github.com/docker/buildx v0.14.0 171fcbeb69d67c90ba7f44f41a9e418f6a6ec1da
[42585 ms] 
[42585 ms] Start: Run: docker -v
[42595 ms] Start: Resolving Remote
[42599 ms] Start: Run: git rev-parse --show-cdup
[42842 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted] --filter label=devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json
[42855 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:alpine-3.20
[38662 ms] Start: Run in container: git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
[39124 ms] Start: Run in container: git fetch --unshallow --tags
remote: Enumerating objects: 27612, done.
remote: Counting objects: 100% (27612/27612), done.
remote: Compressing objects: 100% (6439/6439), done.
remote: Total 27295 (delta 17015), reused 26867 (delta 16634), pack-reused 0 (from 0)
Receiving objects: 100% (27295/27295), 26.60 MiB | 28.35 MiB/s, done.
Resolving deltas: 100% (17015/17015), completed with 154 local objects.
From https://github.com/[redacted]
 43722 ms] Start: Run: docker events --format {{json .}} --filter event=start
[43723 ms] Start: Starting container
[43723 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,dst=/workspaces -l vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer -l vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 -l vsch.local.repository.folder=[redacted] -l devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json -e HOME=/home/vscode -u vscode --userns=keep-id --entrypoint /bin/sh -l devcontainer.metadata=[{"id":"./local-features/git"},{"id":"ghcr.io/devcontainers/features/common-utils:2"},{"remoteUser":"vscode"},{"containerEnv":{"HOME":"/home/vscode"},"containerUser":"vscode","remoteUser":"vscode"}] mcr.microsoft.com/devcontainers/base:alpine-3.20 -c echo Container started
docker: --userns: invalid USER mode.
See 'docker run --help'.
[43733 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/[redacted] --filter label=vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --filter label=vsch.local.repository.folder=[redacted] --filter label=devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json
[43745 ms] Error: Command failed: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,dst=/workspaces -l vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer -l vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 -l vsch.local.repository.folder=[redacted] -l devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json -e HOME=/home/vscode -u vscode --userns=keep-id --entrypoint /bin/sh -l devcontainer.metadata=[{"id":"./local-features/git"},{"id":"ghcr.io/devcontainers/features/common-utils:2"},{"remoteUser":"vscode"},{"containerEnv":{"HOME":"/home/vscode"},"containerUser":"vscode","remoteUser":"vscode"}] mcr.microsoft.com/devcontainers/base:alpine-3.20 -c echo Container started
[43745 ms] trap "exit 0" 15
[43745 ms] exec "$@"
[43745 ms] while sleep 1 & wait $!; do :; done -
[43745 ms]     at ytA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:465:1260)
[43745 ms]     at bH (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:465:1002)
[43745 ms]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[43745 ms]     at async TtA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:482:3848)
[43745 ms]     at async iB (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:482:4963)
[43746 ms]     at async wrA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:663:203)
[43746 ms]     at async DrA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:662:14830)
[43746 ms]     at async /root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js:482:1190
[43807 ms] Exit code 1
[43807 ms] Start: Run: podman rm -f 8c976c8b0a22e6f7baaa96b5735f448cde9a637b1313b8b9d90ba12b412ba811
[43810 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.395.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-e7826b00-816a-446a-9f53-d9b4ad787bfd1734676781423 --workspace-folder /workspaces/[redacted] --workspace-mount-consistency cached --gpu-availability detect --id-label vsch.local.repository=https://github.com/[redacted]/[redacted].git/tree/870_devcontainer --id-label vsch.local.repository.volume=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6 --id-label vsch.local.repository.folder=[redacted] --id-label devcontainer.config_file=/workspaces/[redacted]/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/[redacted]/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-c7e09a6f-7edf-42b7-89dc-5d44ae09aaf6.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=[redacted]-870_devcontainer-1c83cde32ed14c92337e0d28d4bc959b45f2a0302f19d44a66f0478f73e786b6,target=/workspaces,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root --terminal-columns 215 --terminal-rows 21 --include-configuration --include-merged-configuration
[43810 ms] Exit code 1
[54143 ms] Container server terminated (code: 137, signal: null).
[54143 ms] Container server terminated. Reconnecting in 5 seconds...
[59155 ms] Start: Container: Reconnecting Dev Container server
[59156 ms] Start: Run in container: /bin/sh
[59427 ms] Container server: Error: no container with name or ID "8c976c8b0a22e6f7baaa96b5735f448cde9a637b1313b8b9d90ba12b412ba811" found: no such container
[59431 ms] Container server terminated (code: 125, signal: null).
[59431 ms] Container server terminated early. Not reconnecting.
[59431 ms] Reconnecting Dev Container server failed: Container server terminated (code: 125, signal: null).

Expected Behavior

Podman called, container built and a happy world.

Actual Behavior

Something calls docker which then complains about "--userns: invalid USER mode". I have followed this https://code.visualstudio.com/remote/advancedcontainers/docker-options#_podman

Steps To Reproduce

blank win 11 machine

  1. Add wsl2
    .wslconfig:
[wsl2]
kernelCommandLine = cgroup_no_v1=all
processors=8
memory=14GB
[experimental]
autoMemoryReclaim=gradual
  1. setup git

  2. install podman

  3. install vscode

  4. vscode add devcontainers:
    "dev.containers.cacheVolume": false
    "dev.containers.copyGitConfig": true
    "dev.containers.dockerPath": "podman"
    "dev.containers.dockerSocketPath": "/run/user/1000/podman/podman.sock"
    "dev.containers.executeInWSL": false
    "dev.containers.executeInWSLDistro": "podman-machine-default"
    "dev.containers.forwardWSLServices": true
    "dev.containers.mountWaylandSocket": true

  5. have repo with.devcontainer/devcontainer.json```{
    "name": "Alpine",
    "image": "mcr.microsoft.com/devcontainers/base:alpine-3.20",
    "containerUser": "vscode",
    "remoteUser": "vscode",
    "runArgs": [
    "--userns=keep-id"
    ],
    "containerEnv": {
    "HOME": "/home/vscode"
    }
    }





### Anything else?

there does not seem to be an difference whether I run in wsl or not.
@nmwael nmwael added the ssh Issue in vscode-remote SSH label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants