microsoft / microsoft/vscode-remote-release

userns-remap: Container failed to build during updating UID:GID

Open
#9,007 11 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Sep 26, 2023.

containers feature-request
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I am trying to use Dev Container on a remote Ubuntu machine. However it failed even with the simplest config:

{
	"name": "Ubuntu",
	"image": "mcr.microsoft.com/devcontainers/base:jammy"
}

I also tried this config in WSL on my local Windows machine and it has no problem.
I am greenhand to Docker. Here is something might be useful:

  1. I am an LDAP user.
  2. I am in the docker group.
  3. I don't have sudo permission.
  4. /home is mounted through nfs.
  5. Docker enabled userns-remap.
  • VSCode Version: 1.82.2
  • Local OS Version: Windows 10.0.19045 N/A Build 19045
  • Remote OS Version: Ubuntu 20.04.3 LTS
  • Remote Extension/Connection Type: Containers
  • Logs:
[2023-09-21T01:53:57.182Z] Dev Containers 0.309.0 in VS Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d).
[2023-09-21T01:53:57.182Z] Start: Resolving Remote
[2023-09-21T01:53:57.198Z] Start: Run: ssh algows6 /bin/sh
[2023-09-21T01:53:57.207Z] Start: Run in host: id -un
[2023-09-21T01:53:58.687Z] yuhaoding
[2023-09-21T01:53:58.688Z] 
[2023-09-21T01:53:58.688Z] Stop (1481 ms): Run in host: id -un
[2023-09-21T01:53:58.688Z] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'yuhaoding' || grep -E '^yuhaoding|^[^:]*:[^:]*:yuhaoding:' /etc/passwd || true)
[2023-09-21T01:53:58.705Z] Stop (17 ms): Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'yuhaoding' || grep -E '^yuhaoding|^[^:]*:[^:]*:yuhaoding:' /etc/passwd || true)
[2023-09-21T01:53:58.706Z] Start: Run in host: echo ~
[2023-09-21T01:53:58.708Z] /home/yuhaoding
[2023-09-21T01:53:58.708Z] 
[2023-09-21T01:53:58.708Z] Stop (2 ms): Run in host: echo ~
[2023-09-21T01:53:58.708Z] Start: Run in host: test -x '/home/yuhaoding/.vscode-remote-containers/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:58.710Z] 
[2023-09-21T01:53:58.710Z] 
[2023-09-21T01:53:58.711Z] Exit code 1
[2023-09-21T01:53:58.711Z] Stop (3 ms): Run in host: test -x '/home/yuhaoding/.vscode-remote-containers/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:58.711Z] Start: Run in host: test -x '/home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:58.714Z] 
[2023-09-21T01:53:58.714Z] 
[2023-09-21T01:53:58.714Z] Stop (3 ms): Run in host: test -x '/home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:58.714Z] Start: Run in host: test -f '/home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node_modules/node-pty/package.json'
[2023-09-21T01:53:58.716Z] 
[2023-09-21T01:53:58.716Z] 
[2023-09-21T01:53:58.717Z] Stop (3 ms): Run in host: test -f '/home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node_modules/node-pty/package.json'
[2023-09-21T01:53:58.717Z] Start: Run in host: test -f '/home/yuhaoding/.vscode-remote-containers/dist/vscode-remote-containers-server-0.309.0.js'
[2023-09-21T01:53:58.720Z] 
[2023-09-21T01:53:58.721Z] 
[2023-09-21T01:53:58.721Z] Stop (4 ms): Run in host: test -f '/home/yuhaoding/.vscode-remote-containers/dist/vscode-remote-containers-server-0.309.0.js'
[2023-09-21T01:53:58.724Z] userEnvProbe: loginInteractiveShell (default)
[2023-09-21T01:53:58.724Z] userEnvProbe: not found in cache
[2023-09-21T01:53:58.725Z] userEnvProbe shell: /bin/sh
[2023-09-21T01:53:59.309Z] userEnvProbe PATHs:
Probe:     '/home/yuhaoding/anaconda3/bin:/home/yuhaoding/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
Container: None
[2023-09-21T01:53:59.311Z] Setting up container for folder or workspace: /home/yuhaoding/DevContainerTest
[2023-09-21T01:53:59.311Z] Host: ssh://algows6
[2023-09-21T01:53:59.311Z] Start: Run: wsl -l -v
[2023-09-21T01:53:59.389Z] Stop (78 ms): Run: wsl -l -v
[2023-09-21T01:53:59.390Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-09-21T01:53:59.512Z] Stop (122 ms): Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-09-21T01:53:59.513Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/yhding' && /bin/sh
[2023-09-21T01:53:59.517Z] Start: Run in host: id -un
[2023-09-21T01:53:59.592Z] yhding
[2023-09-21T01:53:59.592Z] 
[2023-09-21T01:53:59.592Z] Stop (75 ms): Run in host: id -un
[2023-09-21T01:53:59.592Z] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'yhding' || grep -E '^yhding|^[^:]*:[^:]*:yhding:' /etc/passwd || true)
[2023-09-21T01:53:59.594Z] Stop (2 ms): Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'yhding' || grep -E '^yhding|^[^:]*:[^:]*:yhding:' /etc/passwd || true)
[2023-09-21T01:53:59.594Z] Start: Run in host: echo ~
[2023-09-21T01:53:59.595Z] /home/yhding
[2023-09-21T01:53:59.595Z] 
[2023-09-21T01:53:59.595Z] Stop (1 ms): Run in host: echo ~
[2023-09-21T01:53:59.595Z] Start: Run in host: test -x '/home/yhding/.vscode-remote-containers/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:59.596Z] 
[2023-09-21T01:53:59.596Z] 
[2023-09-21T01:53:59.596Z] Stop (1 ms): Run in host: test -x '/home/yhding/.vscode-remote-containers/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node'
[2023-09-21T01:53:59.597Z] Start: Run in host: test -f '/home/yhding/.vscode-remote-containers/dist/vscode-remote-containers-server-0.309.0.js'
[2023-09-21T01:53:59.597Z] 
[2023-09-21T01:53:59.597Z] 
[2023-09-21T01:53:59.597Z] Stop (0 ms): Run in host: test -f '/home/yhding/.vscode-remote-containers/dist/vscode-remote-containers-server-0.309.0.js'
[2023-09-21T01:53:59.597Z] userEnvProbe: loginInteractiveShell (default)
[2023-09-21T01:53:59.598Z] userEnvProbe: not found in cache
[2023-09-21T01:53:59.598Z] userEnvProbe shell: /bin/bash
[2023-09-21T01:53:59.788Z] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/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/Program Files/Bandizip/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/dotnet/:/Docker/host/bin:/mnt/c/Users/DINGYuhao/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/DINGYuhao/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/Git/bin:/snap/bin'
Container: None
[2023-09-21T01:53:59.841Z] Start: Check Docker is running
[2023-09-21T01:53:59.841Z] Start: Run in Host: docker version --format {{.Server.APIVersion}}
[2023-09-21T01:53:59.913Z] Stop (72 ms): Run in Host: docker version --format {{.Server.APIVersion}}
[2023-09-21T01:53:59.914Z] Server API version: 1.41
[2023-09-21T01:53:59.914Z] Stop (73 ms): Check Docker is running
[2023-09-21T01:53:59.914Z] Start: Run in Host: docker volume ls -q
[2023-09-21T01:53:59.971Z] Stop (57 ms): Run in Host: docker volume ls -q
[2023-09-21T01:53:59.990Z] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/yuhaoding/DevContainerTest --filter label=vsch.quality=stable
[2023-09-21T01:54:00.047Z] Stop (57 ms): Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/yuhaoding/DevContainerTest --filter label=vsch.quality=stable
[2023-09-21T01:54:00.049Z] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.117Z] Stop (68 ms): Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.118Z] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest
[2023-09-21T01:54:00.176Z] Stop (58 ms): Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest
[2023-09-21T01:54:00.193Z] Start: Run in Host: /home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/yuhaoding/DevContainerTest --id-label devcontainer.local_folder=/home/yuhaoding/DevContainerTest --id-label devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2023-09-21T01:54:00.023Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 5.15.0-78-generic x64.
[2023-09-21T01:54:00.023Z] Start: Run: git rev-parse --show-cdup
[2023-09-21T01:54:00.036Z] Stop (13 ms): Run: git rev-parse --show-cdup
[2023-09-21T01:54:00.038Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.069Z] Stop (31 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.419Z] Stop (226 ms): Run in Host: /home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/yuhaoding/DevContainerTest --id-label devcontainer.local_folder=/home/yuhaoding/DevContainerTest --id-label devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2023-09-21T01:54:00.427Z] Start: Run in Host: /home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-4a0729aa-b8f3-4073-8d01-6b040f3df7651695261236499 --workspace-folder /home/yuhaoding/DevContainerTest --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/yuhaoding/DevContainerTest --id-label devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-09-21T01:54:00.298Z] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 5.15.0-78-generic x64.
[2023-09-21T01:54:00.298Z] Start: Run: docker buildx version
[2023-09-21T01:54:00.415Z] Stop (117 ms): Run: docker buildx version
[2023-09-21T01:54:00.415Z] github.com/docker/buildx v0.9.1-docker ed00243a0ce2a0aee75311b06e32d33b44729689
[2023-09-21T01:54:00.416Z] 
[2023-09-21T01:54:00.416Z] Start: Resolving Remote
[2023-09-21T01:54:00.421Z] Start: Run: git rev-parse --show-cdup
[2023-09-21T01:54:00.429Z] Stop (8 ms): Run: git rev-parse --show-cdup
[2023-09-21T01:54:00.432Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.486Z] Stop (54 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/yuhaoding/DevContainerTest --filter label=devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json
[2023-09-21T01:54:00.488Z] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:jammy
[2023-09-21T01:54:00.543Z] Stop (55 ms): Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:jammy
[2023-09-21T01:54:00.545Z] local container features stored at: /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/node_modules/vscode-dev-containers/container-features
[2023-09-21T01:54:00.548Z] Start: Run: tar --no-same-owner -x -f -
[2023-09-21T01:54:00.598Z] Stop (50 ms): Run: tar --no-same-owner -x -f -
[2023-09-21T01:54:00.609Z] Start: Run: docker build -f /tmp/devcontainercli-yuhaoding/updateUID.Dockerfile-0.51.1 -t vsc-devcontainertest-df90e87ccf9f19aca7a71cc43c6f334f296a95eecbd93e1f6738485ec4e3db8a-uid --build-arg BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg REMOTE_USER=vscode --build-arg NEW_UID=1000055 --build-arg NEW_GID=1000001 --build-arg IMAGE_USER=root /tmp/devcontainercli-yuhaoding/empty-folder
[2023-09-21T01:54:00.660Z] Sending build context to Docker daemon  2.607kB


[2023-09-21T01:54:00.739Z] Step 1/10 : ARG BASE_IMAGE
Step 2/10 : FROM $BASE_IMAGE
[2023-09-21T01:54:00.740Z]  ---> 9efebc1fc367
Step 3/10 : USER root
[2023-09-21T01:54:00.741Z]  ---> Using cache
 ---> d78c86bfa209
Step 4/10 : ARG REMOTE_USER
[2023-09-21T01:54:00.741Z] 
[2023-09-21T01:54:00.741Z]  ---> Using cache
 ---> fc0b50ce10f6
Step 5/10 : ARG NEW_UID
[2023-09-21T01:54:00.742Z]  ---> Using cache
 ---> f082435507dd
[2023-09-21T01:54:00.742Z] Step 6/10 : ARG NEW_GID
 ---> Using cache
[2023-09-21T01:54:00.742Z]  ---> 8f4b2d080252
Step 7/10 : SHELL ["/bin/sh", "-c"]
[2023-09-21T01:54:00.743Z]  ---> Using cache
 ---> 54cf6a2a7bec
[2023-09-21T01:54:00.743Z] Step 8/10 : RUN eval $(sed -n "s/${REMOTE_USER}:[^:]*:\([^:]*\):\([^:]*\):[^:]*:\([^:]*\).*/OLD_UID=\1;OLD_GID=\2;HOME_FOLDER=\3/p" /etc/passwd); 	eval $(sed -n "s/\([^:]*\):[^:]*:${NEW_UID}:.*/EXISTING_USER=\1/p" /etc/passwd); 	eval $(sed -n "s/\([^:]*\):[^:]*:${NEW_GID}:.*/EXISTING_GROUP=\1/p" /etc/group); 	if [ -z "$OLD_UID" ]; then 		echo "Remote user not found in /etc/passwd ($REMOTE_USER)."; 	elif [ "$OLD_UID" = "$NEW_UID" -a "$OLD_GID" = "$NEW_GID" ]; then 		echo "UIDs and GIDs are the same ($NEW_UID:$NEW_GID)."; 	elif [ "$OLD_UID" != "$NEW_UID" -a -n "$EXISTING_USER" ]; then 		echo "User with UID exists ($EXISTING_USER=$NEW_UID)."; 	elif [ "$OLD_GID" != "$NEW_GID" -a -n "$EXISTING_GROUP" ]; then 		echo "Group with GID exists ($EXISTING_GROUP=$NEW_GID)."; 	else 		echo "Updating UID:GID from $OLD_UID:$OLD_GID to $NEW_UID:$NEW_GID."; 		sed -i -e "s/\(${REMOTE_USER}:[^:]*:\)[^:]*:[^:]*/\1${NEW_UID}:${NEW_GID}/" /etc/passwd; 		if [ "$OLD_GID" != "$NEW_GID" ]; then 			sed -i -e "s/\([^:]*:[^:]*:\)${OLD_GID}:/\1${NEW_GID}:/" /etc/group; 		fi; 		chown -R $NEW_UID:$NEW_GID $HOME_FOLDER; 	fi;
[2023-09-21T01:54:00.743Z] 
[2023-09-21T01:54:00.877Z]  ---> Running in 51a5cb1efb24
[2023-09-21T01:54:01.271Z] Updating UID:GID from 1000:1000 to 1000055:1000001.
[2023-09-21T01:54:01.276Z] chown: changing ownership of '/home/vscode/.bash_logout': Invalid argument
chown: changing ownership of '/home/vscode/.bashrc': Invalid argument
chown: changing ownership of '/home/vscode/.config': Invalid argument
chown: changing ownership of '/home/vscode/.zshrc': Invalid argument
chown: changing ownership of '/home/vscode/.profile': Invalid argument
...... Bunch of "chown: changing ownership of ...: Invalid argument"
[2023-09-21T01:54:01.301Z] changing ownership of '/home/vscode/.oh-my-zsh/.github/workflows/main.yml': Invalid argument
chown: changing ownership of '/home/vscode/.oh-my-zsh/.github/workflows/project.yml': Invalid argument
chown: changing ownership of '/home/vscode/.oh-my-zsh/.github/workflows/installer.yml': Invalid argument
chown: changing ownership of '/home/vscode/.oh-my-zsh/.github/workflows': Invalid argument
chown: changing ownership of '/home/vscode/.oh-my-zsh/.github': Invalid argument
chown: changing ownership of '/home/vscode/.oh-my-zsh': Invalid argument
chown: changing ownership of '/home/vscode': Invalid argument
[2023-09-21T01:54:01.570Z] The command '/bin/sh -c eval $(sed -n "s/${REMOTE_USER}:[^:]*:\([^:]*\):\([^:]*\):[^:]*:\([^:]*\).*/OLD_UID=\1;OLD_GID=\2;HOME_FOLDER=\3/p" /etc/passwd); 	eval $(sed -n "s/\([^:]*\):[^:]*:${NEW_UID}:.*/EXISTING_USER=\1/p" /etc/passwd); 	eval $(sed -n "s/\([^:]*\):[^:]*:${NEW_GID}:.*/EXISTING_GROUP=\1/p" /etc/group); 	if [ -z "$OLD_UID" ]; then 		echo "Remote user not found in /etc/passwd ($REMOTE_USER)."; 	elif [ "$OLD_UID" = "$NEW_UID" -a "$OLD_GID" = "$NEW_GID" ]; then 		echo "UIDs and GIDs are the same ($NEW_UID:$NEW_GID)."; 	elif [ "$OLD_UID" != "$NEW_UID" -a -n "$EXISTING_USER" ]; then 		echo "User with UID exists ($EXISTING_USER=$NEW_UID)."; 	elif [ "$OLD_GID" != "$NEW_GID" -a -n "$EXISTING_GROUP" ]; then 		echo "Group with GID exists ($EXISTING_GROUP=$NEW_GID)."; 	else 		echo "Updating UID:GID from $OLD_UID:$OLD_GID to $NEW_UID:$NEW_GID."; 		sed -i -e "s/\(${REMOTE_USER}:[^:]*:\)[^:]*:[^:]*/\1${NEW_UID}:${NEW_GID}/" /etc/passwd; 		if [ "$OLD_GID" != "$NEW_GID" ]; then 			sed -i -e "s/\([^:]*:[^:]*:\)${OLD_GID}:/\1${NEW_GID}:/" /etc/group; 		fi; 		chown -R $NEW_UID:$NEW_GID $HOME_FOLDER; 	fi;' returned a non-zero code: 1
[2023-09-21T01:54:01.573Z] Stop (964 ms): Run: docker build -f /tmp/devcontainercli-yuhaoding/updateUID.Dockerfile-0.51.1 -t vsc-devcontainertest-df90e87ccf9f19aca7a71cc43c6f334f296a95eecbd93e1f6738485ec4e3db8a-uid --build-arg BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg REMOTE_USER=vscode --build-arg NEW_UID=1000055 --build-arg NEW_GID=1000001 --build-arg IMAGE_USER=root /tmp/devcontainercli-yuhaoding/empty-folder
[2023-09-21T01:54:01.915Z] Error: Command failed: docker build -f /tmp/devcontainercli-yuhaoding/updateUID.Dockerfile-0.51.1 -t vsc-devcontainertest-df90e87ccf9f19aca7a71cc43c6f334f296a95eecbd93e1f6738485ec4e3db8a-uid --build-arg BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg REMOTE_USER=vscode --build-arg NEW_UID=1000055 --build-arg NEW_GID=1000001 --build-arg IMAGE_USER=root /tmp/devcontainercli-yuhaoding/empty-folder
[2023-09-21T01:54:01.916Z]     at gAA (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:462:1066)
[2023-09-21T01:54:01.916Z]     at FK (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:462:1002)
[2023-09-21T01:54:01.916Z]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2023-09-21T01:54:01.916Z]     at async FAA (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:479:3660)
[2023-09-21T01:54:01.916Z]     at async GC (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:479:4775)
[2023-09-21T01:54:01.916Z]     at async VeA (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:611:12240)
[2023-09-21T01:54:01.916Z]     at async WeA (/home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js:611:11981)
[2023-09-21T01:54:01.924Z] Stop (1497 ms): Run in Host: /home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-4a0729aa-b8f3-4073-8d01-6b040f3df7651695261236499 --workspace-folder /home/yuhaoding/DevContainerTest --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/yuhaoding/DevContainerTest --id-label devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-09-21T01:54:01.924Z] Exit code 1
[2023-09-21T01:54:01.928Z] Command failed: /home/yuhaoding/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /home/yuhaoding/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-4a0729aa-b8f3-4073-8d01-6b040f3df7651695261236499 --workspace-folder /home/yuhaoding/DevContainerTest --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/yuhaoding/DevContainerTest --id-label devcontainer.config_file=/home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/yuhaoding/DevContainerTest/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-09-21T01:54:01.928Z] Exit code 1

Steps to Reproduce:

  1. Run the Dev Containers: Open Folder in Container... command after connecting to the Ubuntu host through Remote-SSH extension.
  2. Select Ubuntu.
  3. Launch container and get the error.

Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.