microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 290 forks source link

Handle missing entry in /etc/passwd gracefully #8875

Closed chrmarti closed 1 year ago

chrmarti commented 1 year ago
          @chrmarti 

I figured out it happens when the Dockerfile sets the user to 1001. https://github.com/HumanSignal/label-studio/blob/develop/Dockerfile

To reproduce:

Dockerfile

FROM alpine

USER 1001

.devcontainer/devcontainer.json

{
    "name": "Existing Dockerfile",
    "build": {
        "context": "..",
        "dockerfile": "../Dockerfile"
    }
}

Run "Open in Dev container" and it fails. Remove USER 1001 and Dev container works.

Originally posted by @COWI-MI in https://github.com/microsoft/vscode-remote-release/issues/8811#issuecomment-1691090673

chrmarti commented 1 year ago

This used to work in 0.299.0.

rzhao271 commented 1 year ago

Doesn't seem to work on Windows, unless this is the expected result? Generic error message about a command failing

chrmarti commented 1 year ago

This is actually not in a new release of the Dev Containers extension yet. Will do a 0.307.0-pre-release today or tomorrow to include it.

chrmarti commented 1 year ago

@rzhao271 My bad, it is released in the current 0.307.0-pre-release. Not sure if what you see is the old issue. Could you append the log (F1 > Dev Containers: Show Container Log)?

rzhao271 commented 1 year ago

I see what happened; devcontainer.json expects Dockerfile to be in the parent folder, not the same folder. I now get the following logs:

[2023-08-31T20:47:35.705Z] Dev Containers 0.307.0 in VS Code 1.82.0-insider (e7756c8870ee1df7360e6624e220534174039b02).
[2023-08-31T20:47:35.704Z] Start: Resolving Remote
[2023-08-31T20:47:35.749Z] Setting up container for folder or workspace: c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:47:35.752Z] Start: Run: wsl -l -v
[2023-08-31T20:47:35.864Z] Stop (112 ms): Run: wsl -l -v
[2023-08-31T20:47:35.865Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-08-31T20:47:36.083Z] Stop (218 ms): Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-08-31T20:47:36.090Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/rzhao' && /bin/sh
[2023-08-31T20:47:36.119Z] Start: Run in host: id -un
[2023-08-31T20:47:36.202Z] rzhao
[2023-08-31T20:47:36.203Z] 
[2023-08-31T20:47:36.203Z] Stop (84 ms): Run in host: id -un
[2023-08-31T20:47:36.203Z] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'rzhao' || grep -E '^rzhao|^[^:]*:[^:]*:rzhao:' /etc/passwd || true)
[2023-08-31T20:47:36.206Z] Stop (3 ms): Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'rzhao' || grep -E '^rzhao|^[^:]*:[^:]*:rzhao:' /etc/passwd || true)
[2023-08-31T20:47:36.206Z] Start: Run in host: echo ~
[2023-08-31T20:47:36.208Z] /home/rzhao
[2023-08-31T20:47:36.208Z] 
[2023-08-31T20:47:36.209Z] Stop (3 ms): Run in host: echo ~
[2023-08-31T20:47:36.209Z] Start: Run in host: test -x '/home/rzhao/.vscode-remote-containers/bin/e7756c8870ee1df7360e6624e220534174039b02/node'
[2023-08-31T20:47:36.211Z] 
[2023-08-31T20:47:36.211Z] 
[2023-08-31T20:47:36.211Z] Stop (2 ms): Run in host: test -x '/home/rzhao/.vscode-remote-containers/bin/e7756c8870ee1df7360e6624e220534174039b02/node'
[2023-08-31T20:47:36.212Z] Start: Run in host: test -f '/home/rzhao/.vscode-remote-containers/dist/vscode-remote-containers-server-0.307.0.js'
[2023-08-31T20:47:36.213Z] 
[2023-08-31T20:47:36.214Z] 
[2023-08-31T20:47:36.214Z] Stop (2 ms): Run in host: test -f '/home/rzhao/.vscode-remote-containers/dist/vscode-remote-containers-server-0.307.0.js'
[2023-08-31T20:47:36.217Z] userEnvProbe: loginInteractiveShell (default)
[2023-08-31T20:47:36.217Z] userEnvProbe: not found in cache
[2023-08-31T20:47:36.218Z] userEnvProbe shell: /bin/bash
[2023-08-31T20:47:37.235Z] userEnvProbe PATHs:
Probe:     '/home/rzhao/.local/bin:/home/rzhao/.nvm/versions/node/v16.16.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft/jdk-17.0.5.8-hotspot/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/shims:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39:/mnt/c/Users/raymondzhao/work/internal-electron/depot_tools:/mnt/c/Program Files/OpenSSH:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files (x86)/Windows Kits/10/Microsoft Application Virtualization/Sequencer/:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files (x86)/GnuPG/bin:/Docker/host/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/shims:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39/Scripts/:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39/:/mnt/c/Ruby31-x64/bin:/mnt/c/Users/raymondzhao/.cargo/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/npm:/mnt/c/Users/raymondzhao/AppData/Local/Yarn/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Users/raymondzhao/AppData/Roaming/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/mnt/c/msys64/mingw64/bin:/mnt/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64:/mnt/c/Strawberry/perl/bin:/mnt/c/Users/raymondzhao/.vscode-server-launcher/bin:/mnt/c/Users/raymondzhao/.vscode-cli/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Users/raymondzhao/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/raymondzhao/.vscode-cli/bin:/mnt/c/Users/raymondzhao/work/vcpkg-host/vcpkg:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code Exploration/bin:/mnt/c/Users/raymondzhao/.dotnet/tools:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin'
Container: None
[2023-08-31T20:47:37.246Z] Start: Run in Host: wslpath -w /mnt/wslg/runtime-dir/wayland-0
[2023-08-31T20:47:37.256Z] Stop (10 ms): Run in Host: wslpath -w /mnt/wslg/runtime-dir/wayland-0
[2023-08-31T20:47:37.257Z] Start: Check Docker is running
[2023-08-31T20:47:37.258Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2023-08-31T20:47:37.605Z] Stop (347 ms): Run: docker version --format {{.Server.APIVersion}}
[2023-08-31T20:47:37.605Z] Server API version: 1.43
[2023-08-31T20:47:37.605Z] Stop (348 ms): Check Docker is running
[2023-08-31T20:47:37.607Z] Start: Run: docker volume ls -q
[2023-08-31T20:47:37.925Z] Stop (318 ms): Run: docker volume ls -q
[2023-08-31T20:47:37.927Z] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=vsch.quality=insider
[2023-08-31T20:47:38.239Z] Stop (312 ms): Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=vsch.quality=insider
[2023-08-31T20:47:38.240Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:38.590Z] Stop (350 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:38.591Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:38.859Z] Stop (268 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:38.861Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:47:39.155Z] Stop (294 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:47:39.155Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:39.475Z] Stop (320 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:39.478Z] Start: Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-08-31T20:47:39.870Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. win32 10.0.22621 x64.
[2023-08-31T20:47:39.870Z] Start: Run: git rev-parse --show-cdup
[2023-08-31T20:47:40.043Z] Stop (173 ms): Run: git rev-parse --show-cdup
[2023-08-31T20:47:40.044Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:40.291Z] Stop (247 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:40.292Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:40.659Z] Stop (367 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:40.688Z] Stop (1210 ms): Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-08-31T20:47:40.689Z] Start: Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-f457465b-e7ae-4304-a9f9-caae6e8a51e41693514854612 --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-40acb29f-e195-486d-9624-c7c94a500c4a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-08-31T20:47:41.105Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. win32 10.0.22621 x64.
[2023-08-31T20:47:41.105Z] Start: Run: docker buildx version
[2023-08-31T20:47:41.725Z] Stop (620 ms): Run: docker buildx version
[2023-08-31T20:47:41.726Z] github.com/docker/buildx v0.11.2-desktop.1 986ab6afe790e25f022969a18bc0111cff170bc2
[2023-08-31T20:47:41.726Z] 
[2023-08-31T20:47:41.726Z] Start: Resolving Remote
[2023-08-31T20:47:41.732Z] Start: Run: git rev-parse --show-cdup
[2023-08-31T20:47:41.896Z] Stop (164 ms): Run: git rev-parse --show-cdup
[2023-08-31T20:47:41.916Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:42.177Z] Stop (261 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:42.178Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:42.488Z] Stop (310 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:42.489Z] Start: Starting container
[2023-08-31T20:47:42.489Z] Start: Run: docker start 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:47:43.260Z] Stop (771 ms): Run: docker start 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:47:43.260Z] Stop (771 ms): Starting container
[2023-08-31T20:47:43.261Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:43.631Z] Stop (370 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:47:43.632Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:44.020Z] Stop (388 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:47:44.021Z] Start: Inspecting container
[2023-08-31T20:47:44.021Z] Start: Run: docker inspect --type container 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:47:44.288Z] Stop (267 ms): Run: docker inspect --type container 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:47:44.288Z] Stop (267 ms): Inspecting container
[2023-08-31T20:47:44.289Z] Start: Run in container: /bin/sh
[2023-08-31T20:47:44.323Z] Start: Run in container: uname -m
[2023-08-31T20:47:44.688Z] Stop (399 ms): Run in container: /bin/sh
[2023-08-31T20:47:44.688Z] Shell server terminated (code: 137, signal: null)
[2023-08-31T20:47:44.689Z] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd '1001' || grep -E '^1001|^[^:]*:[^:]*:1001:' /etc/passwd || true)
[2023-08-31T20:47:44.689Z] Stdin closed!
[2023-08-31T20:47:44.692Z] Error: An error occurred setting up the container.
[2023-08-31T20:47:44.692Z]     at gAA (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:462:1066)
[2023-08-31T20:47:44.692Z]     at FK (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:462:1002)
[2023-08-31T20:47:44.693Z]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2023-08-31T20:47:44.693Z]     at async FAA (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:479:3660)
[2023-08-31T20:47:44.693Z]     at async GC (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:479:4775)
[2023-08-31T20:47:44.693Z]     at async VeA (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:611:12240)
[2023-08-31T20:47:44.693Z]     at async WeA (c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js:611:11981)
[2023-08-31T20:47:44.706Z] Stop (4017 ms): Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-f457465b-e7ae-4304-a9f9-caae6e8a51e41693514854612 --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-40acb29f-e195-486d-9624-c7c94a500c4a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-08-31T20:47:44.706Z] Exit code 1
[2023-08-31T20:47:44.713Z] Command failed: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-f457465b-e7ae-4304-a9f9-caae6e8a51e41693514854612 --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-40acb29f-e195-486d-9624-c7c94a500c4a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-08-31T20:47:44.713Z] Exit code 1
rzhao271 commented 1 year ago

And another attempt recreating the container with no cache. The error becomes a permission error instead, but the container still fails to build.

[2023-08-31T20:49:32.645Z] Dev Containers 0.307.0 in VS Code 1.82.0-insider (e7756c8870ee1df7360e6624e220534174039b02).
[2023-08-31T20:49:32.645Z] Start: Resolving Remote
[2023-08-31T20:49:32.693Z] Setting up container for folder or workspace: c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:49:32.695Z] Start: Run: wsl -l -v
[2023-08-31T20:49:32.802Z] Stop (107 ms): Run: wsl -l -v
[2023-08-31T20:49:32.803Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-08-31T20:49:33.020Z] Stop (217 ms): Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-08-31T20:49:33.023Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/rzhao' && /bin/sh
[2023-08-31T20:49:33.050Z] Start: Run in host: id -un
[2023-08-31T20:49:33.210Z] rzhao
[2023-08-31T20:49:33.211Z] 
[2023-08-31T20:49:33.212Z] Stop (162 ms): Run in host: id -un
[2023-08-31T20:49:33.212Z] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'rzhao' || grep -E '^rzhao|^[^:]*:[^:]*:rzhao:' /etc/passwd || true)
[2023-08-31T20:49:33.219Z] Stop (7 ms): Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'rzhao' || grep -E '^rzhao|^[^:]*:[^:]*:rzhao:' /etc/passwd || true)
[2023-08-31T20:49:33.220Z] Start: Run in host: echo ~
[2023-08-31T20:49:33.222Z] /home/rzhao
[2023-08-31T20:49:33.223Z] 
[2023-08-31T20:49:33.223Z] Stop (3 ms): Run in host: echo ~
[2023-08-31T20:49:33.224Z] Start: Run in host: test -x '/home/rzhao/.vscode-remote-containers/bin/e7756c8870ee1df7360e6624e220534174039b02/node'
[2023-08-31T20:49:33.233Z] 
[2023-08-31T20:49:33.233Z] 
[2023-08-31T20:49:33.233Z] Stop (9 ms): Run in host: test -x '/home/rzhao/.vscode-remote-containers/bin/e7756c8870ee1df7360e6624e220534174039b02/node'
[2023-08-31T20:49:33.234Z] Start: Run in host: test -f '/home/rzhao/.vscode-remote-containers/dist/vscode-remote-containers-server-0.307.0.js'
[2023-08-31T20:49:33.236Z] 
[2023-08-31T20:49:33.237Z] 
[2023-08-31T20:49:33.237Z] Stop (3 ms): Run in host: test -f '/home/rzhao/.vscode-remote-containers/dist/vscode-remote-containers-server-0.307.0.js'
[2023-08-31T20:49:33.243Z] userEnvProbe: loginInteractiveShell (default)
[2023-08-31T20:49:33.243Z] userEnvProbe: not found in cache
[2023-08-31T20:49:33.244Z] userEnvProbe shell: /bin/bash
[2023-08-31T20:49:34.765Z] userEnvProbe PATHs:
Probe:     '/home/rzhao/.local/bin:/home/rzhao/.nvm/versions/node/v16.16.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft/jdk-17.0.5.8-hotspot/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/shims:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39:/mnt/c/Users/raymondzhao/work/internal-electron/depot_tools:/mnt/c/Program Files/OpenSSH:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files (x86)/Windows Kits/10/Microsoft Application Virtualization/Sequencer/:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files (x86)/GnuPG/bin:/Docker/host/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/bin:/mnt/c/Users/raymondzhao/.pyenv/pyenv-win/shims:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39/Scripts/:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Python/Python39/:/mnt/c/Ruby31-x64/bin:/mnt/c/Users/raymondzhao/.cargo/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/npm:/mnt/c/Users/raymondzhao/AppData/Local/Yarn/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Users/raymondzhao/AppData/Roaming/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/mnt/c/msys64/mingw64/bin:/mnt/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64:/mnt/c/Strawberry/perl/bin:/mnt/c/Users/raymondzhao/.vscode-server-launcher/bin:/mnt/c/Users/raymondzhao/.vscode-cli/bin:/mnt/c/Users/raymondzhao/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Users/raymondzhao/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/raymondzhao/.vscode-cli/bin:/mnt/c/Users/raymondzhao/work/vcpkg-host/vcpkg:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code Exploration/bin:/mnt/c/Users/raymondzhao/.dotnet/tools:/mnt/c/Users/raymondzhao/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin'
Container: None
[2023-08-31T20:49:34.779Z] Start: Run in Host: wslpath -w /mnt/wslg/runtime-dir/wayland-0
[2023-08-31T20:49:34.789Z] Stop (10 ms): Run in Host: wslpath -w /mnt/wslg/runtime-dir/wayland-0
[2023-08-31T20:49:34.801Z] Start: Check Docker is running
[2023-08-31T20:49:34.802Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2023-08-31T20:49:35.183Z] Stop (381 ms): Run: docker version --format {{.Server.APIVersion}}
[2023-08-31T20:49:35.183Z] Server API version: 1.43
[2023-08-31T20:49:35.184Z] Stop (383 ms): Check Docker is running
[2023-08-31T20:49:35.185Z] Start: Run: docker volume ls -q
[2023-08-31T20:49:35.468Z] Stop (283 ms): Run: docker volume ls -q
[2023-08-31T20:49:35.469Z] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=vsch.quality=insider
[2023-08-31T20:49:35.745Z] Stop (276 ms): Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=vsch.quality=insider
[2023-08-31T20:49:35.747Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:36.132Z] Stop (385 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:36.132Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:36.421Z] Stop (289 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:36.423Z] Start: Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-08-31T20:49:36.849Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. win32 10.0.22621 x64.
[2023-08-31T20:49:36.849Z] Start: Run: git rev-parse --show-cdup
[2023-08-31T20:49:37.016Z] Stop (167 ms): Run: git rev-parse --show-cdup
[2023-08-31T20:49:37.017Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:37.360Z] Stop (343 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:37.362Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:37.678Z] Stop (316 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:37.715Z] Stop (1292 ms): Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-08-31T20:49:37.716Z] Start: Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-33a026d1-d731-4fe1-8f9c-ca313b5635fc1693514971390 --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --build-no-cache --remove-existing-container --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-73d993da-48f7-4f8f-b719-4f1c599ca51c.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-08-31T20:49:38.155Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. win32 10.0.22621 x64.
[2023-08-31T20:49:38.155Z] Start: Run: docker buildx version
[2023-08-31T20:49:38.782Z] Stop (627 ms): Run: docker buildx version
[2023-08-31T20:49:38.782Z] github.com/docker/buildx v0.11.2-desktop.1 986ab6afe790e25f022969a18bc0111cff170bc2
[2023-08-31T20:49:38.782Z] 
[2023-08-31T20:49:38.782Z] Start: Resolving Remote
[2023-08-31T20:49:38.787Z] Start: Run: git rev-parse --show-cdup
[2023-08-31T20:49:38.956Z] Stop (169 ms): Run: git rev-parse --show-cdup
[2023-08-31T20:49:38.963Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:39.239Z] Stop (276 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:39.240Z] Start: Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:39.551Z] Stop (311 ms): Run: docker inspect --type container 87725492cfc5
[2023-08-31T20:49:39.552Z] Start: Removing Existing Container
[2023-08-31T20:49:39.552Z] Start: Run: docker rm -f 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:49:39.932Z] Stop (380 ms): Run: docker rm -f 87725492cfc5977230cba9274ca496e62b70cf8117c7386725ec8620b3826a03
[2023-08-31T20:49:39.932Z] Stop (380 ms): Removing Existing Container
[2023-08-31T20:49:39.936Z] Start: Run: docker inspect --type image alpine
[2023-08-31T20:49:40.220Z] Stop (284 ms): Run: docker inspect --type image alpine
[2023-08-31T20:49:40.549Z] Start: Run: docker-credential-desktop get
[2023-08-31T20:49:43.510Z] Stop (2961 ms): Run: docker-credential-desktop get
[2023-08-31T20:49:44.532Z] local container features stored at: c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\node_modules\vscode-dev-containers\container-features
[2023-08-31T20:49:44.535Z] Start: Run: tar --no-same-owner -x -f -
[2023-08-31T20:49:44.690Z] Stop (155 ms): Run: tar --no-same-owner -x -f -
[2023-08-31T20:49:44.697Z] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\Users\RAYMON~1\AppData\Local\Temp\devcontainercli\container-features\0.51.1-1693514984530\Dockerfile-with-features -t vsc-devcontainers-test-43374b5bf8185619a3ec70f026dd5691c8fceaa9c205db5d03e68a04d69c532e --target dev_containers_target_stage --no-cache --pull --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:49:45.041Z] 
[2023-08-31T20:49:45.874Z] 
[+] Building 0.0s (0/0)                                          docker:default

[2023-08-31T20:49:45.906Z] 

[2023-08-31T20:49:46.178Z] 
[2023-08-31T20:49:46.211Z] 
[2023-08-31T20:49:46.494Z] 
[2023-08-31T20:49:46.523Z] 
[2023-08-31T20:49:46.659Z] 
[+] Building 0.2s (2/3)                                          docker:default
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 229B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
[2023-08-31T20:49:46.693Z] 
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest           0.1s
[2023-08-31T20:49:46.828Z] 
[+] Building 0.3s (2/3)                                          docker:default
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 229B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest           0.3s
[2023-08-31T20:49:46.963Z] 
[+] Building 0.5s (2/3)                                          docker:default
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 229B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest           0.3s

[2023-08-31T20:49:46.994Z] 

 => [internal] load metadata for docker.io/library/alpine:latest           0.4s
[2023-08-31T20:49:47.092Z] 
[+] Building 0.6s (3/3)                                          docker:default
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 229B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest           0.4s
[2023-08-31T20:49:47.125Z] 
 => [internal] load metadata for docker.io/library/alpine:latest           0.6s
[2023-08-31T20:49:47.229Z] 
[+] Building 0.7s (6/6) FINISHED                                 docker:default
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 229B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest           0.6s
 => CACHED [dev_container_auto_added_stage_label 1/1] FROM docker.io/libr  0.0s
 => preparing layers for inline cache                                      0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:2abbb40b31087f1f2ba2a2b777014d299d4967dfd10c0  0.0s
 => => naming to docker.io/library/vsc-devcontainers-test-43374b5bf818561  0.0s
[2023-08-31T20:49:47.345Z] Stop (2648 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\Users\RAYMON~1\AppData\Local\Temp\devcontainercli\container-features\0.51.1-1693514984530\Dockerfile-with-features -t vsc-devcontainers-test-43374b5bf8185619a3ec70f026dd5691c8fceaa9c205db5d03e68a04d69c532e --target dev_containers_target_stage --no-cache --pull --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label c:\Users\raymondzhao\work\endgame\devcontainers-test
[2023-08-31T20:49:47.349Z] Start: Run: docker events --format {{json .}} --filter event=start
[2023-08-31T20:49:47.383Z] Start: Starting container
[2023-08-31T20:49:47.383Z] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=c:\Users\raymondzhao\work\endgame\devcontainers-test,target=/workspaces/devcontainers-test,consistency=cached --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,dst=/tmp/vscode-wayland-73d993da-48f7-4f8f-b719-4f1c599ca51c.sock -l devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test -l devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --entrypoint /bin/sh vsc-devcontainers-test-43374b5bf8185619a3ec70f026dd5691c8fceaa9c205db5d03e68a04d69c532e -c echo Container started
[2023-08-31T20:49:47.637Z] 
[2023-08-31T20:49:48.317Z] Stop (934 ms): Starting container
[2023-08-31T20:49:48.317Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:48.326Z] Stop (977 ms): Run: docker events --format {{json .}} --filter event=start
[2023-08-31T20:49:48.341Z] Container started
[2023-08-31T20:49:48.569Z] Stop (252 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --filter label=devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json
[2023-08-31T20:49:48.569Z] Start: Run: docker inspect --type container 481950134afb
[2023-08-31T20:49:48.831Z] Stop (262 ms): Run: docker inspect --type container 481950134afb
[2023-08-31T20:49:48.832Z] Start: Inspecting container
[2023-08-31T20:49:48.832Z] Start: Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:49.141Z] Stop (309 ms): Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:49.141Z] Stop (309 ms): Inspecting container
[2023-08-31T20:49:49.147Z] Start: Run in container: /bin/sh
[2023-08-31T20:49:49.181Z] Start: Run in container: uname -m
[2023-08-31T20:49:49.579Z] x86_64
[2023-08-31T20:49:49.579Z] 
[2023-08-31T20:49:49.579Z] Stop (398 ms): Run in container: uname -m
[2023-08-31T20:49:49.579Z] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2023-08-31T20:49:49.592Z] NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.3
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
[2023-08-31T20:49:49.592Z] 
[2023-08-31T20:49:49.592Z] Stop (13 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2023-08-31T20:49:49.593Z] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd '1001' || grep -E '^1001|^[^:]*:[^:]*:1001:' /etc/passwd || true)
[2023-08-31T20:49:49.606Z] Stop (13 ms): Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd '1001' || grep -E '^1001|^[^:]*:[^:]*:1001:' /etc/passwd || true)
[2023-08-31T20:49:49.607Z] User 1001 not found with 'getent passwd'.
[2023-08-31T20:49:49.608Z] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[2023-08-31T20:49:49.615Z] 
[2023-08-31T20:49:49.615Z] 
[2023-08-31T20:49:49.615Z] Exit code 1
[2023-08-31T20:49:49.615Z] Stop (7 ms): Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[2023-08-31T20:49:49.616Z] Start: Run in container: /bin/sh
[2023-08-31T20:49:49.665Z] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[2023-08-31T20:49:50.052Z] 
[2023-08-31T20:49:50.052Z] 
[2023-08-31T20:49:50.052Z] Stop (387 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[2023-08-31T20:49:50.052Z] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[2023-08-31T20:49:50.055Z] 
[2023-08-31T20:49:50.055Z] 
[2023-08-31T20:49:50.055Z] Stop (3 ms): Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[2023-08-31T20:49:50.055Z] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[2023-08-31T20:49:50.057Z] 
[2023-08-31T20:49:50.057Z] 
[2023-08-31T20:49:50.057Z] Exit code 1
[2023-08-31T20:49:50.057Z] Stop (2 ms): Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[2023-08-31T20:49:50.057Z] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[2023-08-31T20:49:50.061Z] 
[2023-08-31T20:49:50.061Z] 
[2023-08-31T20:49:50.061Z] Stop (4 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[2023-08-31T20:49:50.061Z] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[2023-08-31T20:49:50.066Z] 
[2023-08-31T20:49:50.066Z] 
[2023-08-31T20:49:50.066Z] Stop (5 ms): Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[2023-08-31T20:49:50.066Z] Stop (11284 ms): Resolving Remote
[2023-08-31T20:49:50.102Z] Stop (12386 ms): Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-33a026d1-d731-4fe1-8f9c-ca313b5635fc1693514971390 --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --build-no-cache --remove-existing-container --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-73d993da-48f7-4f8f-b719-4f1c599ca51c.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-08-31T20:49:50.103Z] Start: Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:50.348Z] Stop (245 ms): Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:50.349Z] Start: Run: docker exec -i -u root 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=33a026d1-d731-4fe1-8f9c-ca313b5635fc1693514971390 ; /bin/sh
[2023-08-31T20:49:50.350Z] Start: Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --container-id 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873 --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[2023-08-31T20:49:50.790Z] New container started. Keep-alive process started.
[2023-08-31T20:49:50.869Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. win32 10.0.22621 x64.
[2023-08-31T20:49:50.869Z] Start: Run: git rev-parse --show-cdup
[2023-08-31T20:49:51.068Z] Stop (199 ms): Run: git rev-parse --show-cdup
[2023-08-31T20:49:51.069Z] Start: Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:51.355Z] Stop (286 ms): Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:51.369Z] Stop (1019 ms): Run: C:\Users\raymondzhao\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe --ms-enable-electron-run-as-node c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.local_folder=c:\Users\raymondzhao\work\endgame\devcontainers-test --id-label devcontainer.config_file=c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --container-id 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873 --log-level debug --log-format json --config c:\Users\raymondzhao\work\endgame\devcontainers-test\.devcontainer\devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[2023-08-31T20:49:51.369Z] Start: Inspecting container
[2023-08-31T20:49:51.369Z] Start: Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:51.733Z] Stop (364 ms): Run: docker inspect --type container 481950134afbb8687a4b3d7add48bc05b2b01e6cb78e6aad1c6c3465f87f2873
[2023-08-31T20:49:51.734Z] Stop (365 ms): Inspecting container
[2023-08-31T20:49:51.735Z] Start: Run in container: /bin/sh
[2023-08-31T20:49:51.779Z] Start: Run in container: uname -m
[2023-08-31T20:49:52.076Z] x86_64
[2023-08-31T20:49:52.076Z] 
[2023-08-31T20:49:52.077Z] Stop (298 ms): Run in container: uname -m
[2023-08-31T20:49:52.077Z] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2023-08-31T20:49:52.084Z] NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.3
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
[2023-08-31T20:49:52.085Z] 
[2023-08-31T20:49:52.085Z] Stop (8 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2023-08-31T20:49:52.086Z] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd '1001' || grep -E '^1001|^[^:]*:[^:]*:1001:' /etc/passwd || true)
[2023-08-31T20:49:52.095Z] Stop (9 ms): Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd '1001' || grep -E '^1001|^[^:]*:[^:]*:1001:' /etc/passwd || true)
[2023-08-31T20:49:52.096Z] User 1001 not found with 'getent passwd'.
[2023-08-31T20:49:52.097Z] Start: Run in container: command -v git >/dev/null 2>&1 && cd '/workspaces/devcontainers-test' && test -d .git && test "$(stat -c %u .)" != "$(id -u)"
[2023-08-31T20:49:52.102Z] 
[2023-08-31T20:49:52.102Z] 
[2023-08-31T20:49:52.103Z] Exit code 127
[2023-08-31T20:49:52.103Z] Stop (6 ms): Run in container: command -v git >/dev/null 2>&1 && cd '/workspaces/devcontainers-test' && test -d .git && test "$(stat -c %u .)" != "$(id -u)"
[2023-08-31T20:49:52.104Z] Start: Updating configuration state
[2023-08-31T20:49:52.110Z] Stop (6 ms): Updating configuration state
[2023-08-31T20:49:52.111Z] Start: Setup shutdown monitor
[2023-08-31T20:49:52.114Z] Forking shutdown monitor: c:\Users\raymondzhao\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.307.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-75263575-3787-4d2d-905b-19be12f984d0-sock singleContainer Debug c:\Users\raymondzhao\AppData\Roaming\Code - Insiders\logs\20230831T083352\window5\exthost\ms-vscode-remote.remote-containers 1693514972582
[2023-08-31T20:49:52.154Z] Stop (43 ms): Setup shutdown monitor
[2023-08-31T20:49:52.156Z] Start: Run in container: test -d /root/.vscode-server-insiders
[2023-08-31T20:49:52.165Z] 
[2023-08-31T20:49:52.166Z] 
[2023-08-31T20:49:52.166Z] Exit code 1
[2023-08-31T20:49:52.166Z] Stop (10 ms): Run in container: test -d /root/.vscode-server-insiders
[2023-08-31T20:49:52.167Z] Start: Run in container: test -d /root/.vscode-remote
[2023-08-31T20:49:52.172Z] 
[2023-08-31T20:49:52.173Z] 
[2023-08-31T20:49:52.174Z] Exit code 1
[2023-08-31T20:49:52.174Z] Stop (7 ms): Run in container: test -d /root/.vscode-remote
[2023-08-31T20:49:52.176Z] Start: Run in container: test ! -f '/root/.vscode-server-insiders/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server-insiders/data/Machine' && { > '/root/.vscode-server-insiders/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2023-08-31T20:49:52.185Z] 
[2023-08-31T20:49:52.185Z] mkdir: can't create directory '/root/.vscode-server-insiders/': Permission denied
[2023-08-31T20:49:52.186Z] Exit code 1
[2023-08-31T20:49:52.186Z] Stop (10 ms): Run in container: test ! -f '/root/.vscode-server-insiders/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server-insiders/data/Machine' && { > '/root/.vscode-server-insiders/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2023-08-31T20:49:52.187Z] Start: Run in container: cat /root/.vscode-server-insiders/data/Machine/settings.json
[2023-08-31T20:49:52.195Z] 
[2023-08-31T20:49:52.195Z] cat: can't open '/root/.vscode-server-insiders/data/Machine/settings.json': Permission denied
[2023-08-31T20:49:52.196Z] Exit code 1
[2023-08-31T20:49:52.196Z] Stop (9 ms): Run in container: cat /root/.vscode-server-insiders/data/Machine/settings.json
[2023-08-31T20:49:52.197Z] 
Support for Alpine Linux is in preview.

[2023-08-31T20:49:52.197Z] Start: Run in container: test -d /root/.vscode-server-insiders/bin/e7756c8870ee1df7360e6624e220534174039b02-insider
[2023-08-31T20:49:52.202Z] 
[2023-08-31T20:49:52.202Z] 
[2023-08-31T20:49:52.202Z] Exit code 1
[2023-08-31T20:49:52.203Z] Stop (6 ms): Run in container: test -d /root/.vscode-server-insiders/bin/e7756c8870ee1df7360e6624e220534174039b02-insider
[2023-08-31T20:49:52.203Z] Start: Run in container: /bin/sh
[2023-08-31T20:49:52.248Z] Start: Run in container: apk info | grep -e '^libstdc++$' || (apk update && apk add libstdc++)
[2023-08-31T20:49:52.249Z] Start: Run in container: test -d /vscode/vscode-server-insiders/bin/linux-alpine/e7756c8870ee1df7360e6624e220534174039b02-insider
[2023-08-31T20:49:52.253Z] 
[2023-08-31T20:49:52.253Z] 
[2023-08-31T20:49:52.254Z] Stop (5 ms): Run in container: test -d /vscode/vscode-server-insiders/bin/linux-alpine/e7756c8870ee1df7360e6624e220534174039b02-insider
[2023-08-31T20:49:52.254Z] Start: Run in container: mkdir -p '/root/.vscode-server-insiders/bin' && ln -snf '/vscode/vscode-server-insiders/bin/linux-alpine/e7756c8870ee1df7360e6624e220534174039b02-insider' '/root/.vscode-server-insiders/bin/e7756c8870ee1df7360e6624e220534174039b02-insider'
[2023-08-31T20:49:52.257Z] 
[2023-08-31T20:49:52.258Z] mkdir: can't create directory '/root/.vscode-server-insiders/': Permission denied
[2023-08-31T20:49:52.258Z] Exit code 1
[2023-08-31T20:49:52.258Z] Stop (4 ms): Run in container: mkdir -p '/root/.vscode-server-insiders/bin' && ln -snf '/vscode/vscode-server-insiders/bin/linux-alpine/e7756c8870ee1df7360e6624e220534174039b02-insider' '/root/.vscode-server-insiders/bin/e7756c8870ee1df7360e6624e220534174039b02-insider'
[2023-08-31T20:49:52.264Z] Command in container failed: mkdir -p '/root/.vscode-server-insiders/bin' && ln -snf '/vscode/vscode-server-insiders/bin/linux-alpine/e7756c8870ee1df7360e6624e220534174039b02-insider' '/root/.vscode-server-insiders/bin/e7756c8870ee1df7360e6624e220534174039b02-insider'
[2023-08-31T20:49:52.265Z] mkdir: can't create directory '/root/.vscode-server-insiders/': Permission denied
[2023-08-31T20:49:52.265Z] Exit code 1
[2023-08-31T20:49:53.878Z] fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
v3.18.3-120-gbcc6a3726c8 [https://dl-cdn.alpinelinux.org/alpine/v3.18/main]
v3.18.3-122-g373c17d4603 [https://dl-cdn.alpinelinux.org/alpine/v3.18/community]
OK: 20063 distinct packages available
(1/2) Installing libgcc (12.2.1_git20220924-r10)
(2/2) Installing libstdc++ (12.2.1_git20220924-r10)
OK: 10 MiB in 17 packages
[2023-08-31T20:49:53.879Z] WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/community: No such file or directory
[2023-08-31T20:49:53.879Z] Stop (1631 ms): Run in container: apk info | grep -e '^libstdc++$' || (apk update && apk add libstdc++)
chrmarti commented 1 year ago

That is a limitation of the repro as we fall back to using /root if we can't find the user. This never worked.

Could you change the Dockerfile to:

FROM alpine:latest
RUN chown -R 1001 /root
USER 1001

and confirm this works? This would confirm that the regression is fixed. Thanks!