Steps to Reproduce:
{
"dotfiles.repository": "frozenbonito/dotfiles", // private repo
"dotfiles.targetPath": "~/dotfiles",
"dotfiles.installCommand": "~/dotfiles/install.sh"
}
2. Open Folder via `\\wsl$\Debian...`
3. Remote Containers: Reopen in Container
4. The following lines appears in dev containers logs
[4036 ms] Start: Run in container: # Clone & install dotfiles
[4873 ms] /home/vscode/dotfiles/install.sh not executable
[4873 ms] Cloning into '/home/vscode/dotfiles'...
fatal: could not read Username for 'https://github.com': No such device or address
I configured the SSH agent according to [this document](https://code.visualstudio.com/docs/remote/containers#_using-ssh-keys), and installed `socat` to WSL 2 distro according to #2925 . In dev container, git operations (e.g. `git fetch`, `git push`) on workspace repo will succeed. The SSH key don't seem to be used correctly to clone dotfiles repo during dev container initialization.
[12 ms] Start: Resolving remote
[13 ms] Start: Run: wsl -d Debian -e wslpath -u \\wsl$\Debian\home\frozenbonito\test-repo
[94 ms] Start: Run: wsl -d Debian
[153 ms] Setting up container for folder or workspace: /home/frozenbonito/test-repo
[211 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && test '-f' '/home/frozenbonito/test-repo/.devcontainer/devcontainer.json'
[270 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && cat '/home/frozenbonito/test-repo/.devcontainer/devcontainer.json'
[329 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && git 'rev-parse' '--show-toplevel'
[389 ms] Start: Check Docker is running
[389 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'info'
[563 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\\wsl$\Debian\home\frozenbonito\test-repo' '--filter' 'label=vsch.quality=stable'
[668 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && cat '/home/frozenbonito/test-repo/.devcontainer/Dockerfile'
[730 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'build' '-f' '/home/frozenbonito/test-repo/.devcontainer/Dockerfile' '-t' 'vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e' '--build-arg' 'VARIANT=buster' '/home/frozenbonito/test-repo/.devcontainer'
Sending build context to Docker daemon 4.096kB
Step 1/2 : ARG VARIANT="buster"
Step 2/2 : FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
---> 969c236ec72a
Successfully built 969c236ec72a
Successfully tagged vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e:latest
[1164 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'inspect' '--type' 'image' 'vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e'
[1263 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && mkdir '-p' '/tmp/vsch'
[1324 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && /bin/sh '-c' 'cat >'"'"'/tmp/vsch/updateUID.Dockerfile-0.134.1-1599233231970'"'"''
[1383 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && mv '/tmp/vsch/updateUID.Dockerfile-0.134.1-1599233231970' '/tmp/vsch/updateUID.Dockerfile-0.134.1'
[1446 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && id '-u'
[1506 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && id '-g'
[1567 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'build' '-f' '/tmp/vsch/updateUID.Dockerfile-0.134.1' '-t' 'vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e-uid' '--build-arg' 'BASE_IMAGE=vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e' '--build-arg' 'REMOTE_USER=vscode' '--build-arg' 'NEW_UID=1000' '--build-arg' 'NEW_GID=1000' '--build-arg' 'IMAGE_USER=root' '/tmp/vsch'
Sending build context to Docker daemon 3.072kB
Step 1/9 : ARG BASE_IMAGE
Step 2/9 : FROM $BASE_IMAGE
---> 969c236ec72a
Step 3/9 : USER root
---> Using cache
---> b3ad1f1cbe95
Step 4/9 : ARG REMOTE_USER
---> Using cache
---> d877d0835e39
Step 5/9 : ARG NEW_UID
---> Using cache
---> 4154398b3e48
Step 6/9 : ARG NEW_GID
---> Using cache
---> 3ccec0711514
Step 7/9 : RUN /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 use
r 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 e
cho "Group with GID exists ($EXISTING_GROUP=$NEW_GID)."; else e
cho "Updating UID:GID from $OLD_UID:$OLD_GID to $NEW_UID:$NEW_GID."; s
ed -i -e "s/\(${REMOTE_USER}:[^:]*:\)[^:]*:[^:]*/\1${NEW_UID}:${NEW_GID}/" /etc/
passwd; if [ "$OLD_GID" != "$NEW_GID" ]; then s
ed -i -e "s/\([^:]*:[^:]*:\)${OLD_GID}:/\1${NEW_GID}:/" /etc/group; f
i; chown -R $NEW_UID:$NEW_GID $HOME_FOLDER; fi; '
---> Using cache
---> be5f6b390821
Step 8/9 : ARG IMAGE_USER
---> Using cache
---> fcee2c64edbf
Step 9/9 : USER $IMAGE_USER
---> Using cache
---> 97790031e92e
Successfully built 97790031e92e
Successfully tagged vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e-uid:latest
[1964 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker '-v'
[2068 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'events' '--format' '{{json .}}' '--filter' 'status=start'
[2070 ms] Start: Starting container
[2071 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'run' '-a' 'STDOUT' '-a' 'STDERR' '--mount' 'type=bind,source=/home/frozenbonito/test-repo,target=/workspaces/test-repo' '-l' 'vsch.quality=stable' '-l' 'vsch.remote.devPort=0' '-l' 'vsch.local.folder=\\wsl$\Debian\home\frozenbonito\test-repo' '--entrypoint' '/bin/sh' 'vsc-test-repo-f33c43237dbfc2a83bf554694d22c09e-uid' '-c' 'echo Container started ; trap "exit 0" 15; while sleep 1 & wait $!; do :; done'
[2620 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\\wsl$\Debian\home\frozenbonito\test-repo' '--filter' 'label=vsch.quality=stable'
Container started
[2732 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'inspect' '--type' 'container' 'bc1be27f829b'
[2849 ms] Start: Inspecting container
[2849 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'inspect' '--type' 'container' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082'
[2955 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=6465c693-c32f-483f-9b01-ea73dde6ba651599233230192' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/bin/sh'
[2957 ms] Start: Run in container: uname -m
[3091 ms] x86_64
[3091 ms]
[3091 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[3093 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[3093 ms]
[3093 ms] Start: Run in container: cat /etc/passwd
[3096 ms] Start: Updating configuration state
[3096 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && cat '/home/frozenbonito/test-repo/.devcontainer/Dockerfile'
[3160 ms] Start: Setup shutdown monitor
[3162 ms] Forking shutdown monitor: c:\Users\frozenbonito\.vscode\extensions\ms-vscode-remote.remote-containers-0.134.1\dist\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-80ad1bdfb78ce6e608497196103828baf96116e1-sock singleContainer Info c:\Users\frozenbonito\AppData\Roaming\Code\logs\20200904T235619\exthost1\ms-vscode-remote.remote-containers
[3167 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[3169 ms]
[3169 ms]
[3169 ms] Exit code 1
[3169 ms] Start: Run in container: test -d /home/vscode/.vscode-remote
[3170 ms]
[3170 ms]
[3170 ms] Exit code 1
[3170 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[3172 ms]
[3172 ms]
[3172 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && cat >'/home/vscode/.vscode-server/data/Machine/settings.json' <<'settingsJSON'
[3176 ms]
[3176 ms]
[3176 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0
[3178 ms]
[3178 ms]
[3178 ms] Exit code 1
[3178 ms] Installing VS Code Server for commit a0479759d6e9ea56afa657e454193f72aef85bd0
[3178 ms] Start: Run in container: mkdir -p /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0_1599233233885
[3180 ms]
[3180 ms]
[3195 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=3815 2>/dev/null; dd iflag=fullblock bs=5006 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0_1599233233885
[3767 ms]
[3767 ms]
[3767 ms] Start: Run in container: mv -n /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0_1599233233885 /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0
[3770 ms]
[3770 ms]
[3770 ms] Start: Launching Remote-Containers helper.
[3770 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && gpgconf '--list-dir' 'agent-extra-socket'
[3851 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js' >/tmp/vscode-remote-containers-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js
[3852 ms]
[3853 ms]
[3853 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js' >/tmp/vscode-remote-containers-server-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js
[3854 ms]
[3854 ms]
[3854 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-27a1207c2f10385cf83d40b81a62a39f5876cc7f.sock"]' '-e' 'REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-27a1207c2f10385cf83d40b81a62a39f5876cc7f.sock' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node' '/tmp/vscode-remote-containers-server-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js'
[4036 ms] Start: Run in container: # Clone & install dotfiles
[4873 ms] /home/vscode/dotfiles/install.sh not executable
[4873 ms] Cloning into '/home/vscode/dotfiles'...
fatal: could not read Username for 'https://github.com': No such device or address
[4874 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && cat '/home/frozenbonito/.gitconfig'
[4936 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git
[4938 ms]
[4938 ms]
[4938 ms] Start: Run in container: # Copy /home/frozenbonito/.gitconfig to /home/vscode/.gitconfig
[4940 ms]
[4940 ms]
[4940 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node /tmp/vscode-remote-containers-27a1207c2f10385cf83d40b81a62a39f5876cc7f.js $*; }; f' || true
[4942 ms]
[4942 ms]
[4942 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && cat '/home/frozenbonito/.ssh/known_hosts'
[5004 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh
[5006 ms]
[5006 ms]
[5006 ms] Start: Run in container: # Copy /home/frozenbonito/.ssh/known_hosts to /home/vscode/.ssh/known_hosts
[5009 ms]
[5009 ms]
[5009 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[5011 ms]
[5011 ms]
[5012 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null
[5027 ms] Start: Run in container: /home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/server.sh --disable-user-env-probe --use-host-proxy --port 0 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache
[5129 ms]
*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license https://aka.ms/vscode-remote/license
*
[5157 ms] IP Address: 172.17.0.2
[5160 ms] Extension host agent listening on 33325
[5160 ms]
[15:27:15] Extension host agent started.
[5160 ms] Start: Run in container: echo 33325 >/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/.devport
[5161 ms]
[5161 ms]
[5162 ms] Forwarding local port 33325 to container port 33325
[5182 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=6465c693-c32f-483f-9b01-ea73dde6ba651599233230192' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node' '-e' '
[5182 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=6465c693-c32f-483f-9b01-ea73dde6ba651599233230192' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node' '-e' '
[5404 ms] [15:27:16] [::ffff:127.0.0.1][3faa3d21][ManagementConnection] New connection established.
[5425 ms] [15:27:16] [::ffff:127.0.0.1][5050a269][ExtensionHostConnection] New connection established.
[5439 ms] [15:27:16] [::ffff:127.0.0.1][5050a269][ExtensionHostConnection] <169> Launched Extension Host Process.
[6022 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=6465c693-c32f-483f-9b01-ea73dde6ba651599233230192' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node' '-e' '
[6290 ms] Start: Run: wsl -d Debian -e /bin/sh -c cd '/home/frozenbonito/test-repo' && docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=6465c693-c32f-483f-9b01-ea73dde6ba651599233230192' 'bc1be27f829bc5f4749fda2c1198d3a2449265f6c3a10aa741727e1d76f81082' '/home/vscode/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node' '-e' '
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
Happens to me with the public repository in a simpler scenario:
remote-containers.rebuildAndReopenInContainer// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore
{
"name": "nikiforovall golden dotnet",
"image": "devcontainers/dotnet:0.2.0",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/sh"
},
}
"remote.containers.dotfiles.repository": "https://github.com/NikiforovAll/dotfiles.git",
"remote.containers.dotfiles.installCommand": "~/dotfiles/src/dev-container/boot/install.sh",
"remote.containers.dotfiles.targetPath": "~/dotfiles"
Log
[52 ms] Start: Resolving remote
[58 ms] Setting up container for folder or workspace: c:\Nikiforov\dev\dev-containers-test1
[117 ms] Start: Check Docker is running
[118 ms] Start: Run: docker info
[402 ms] Stop (284 ms): Run: docker info
[403 ms] Stop (286 ms): Check Docker is running
[502 ms] Start: Run: git rev-parse --show-toplevel
[580 ms] Stop (78 ms): Run: git rev-parse --show-toplevel
[581 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Nikiforov\dev\dev-containers-test1 --filter label=vsch.quality=stable
[810 ms] Stop (229 ms): Run: docker ps -q -a --filter label=vsch.local.folder=c:\Nikiforov\dev\dev-containers-test1 --filter label=vsch.quality=stable
[814 ms] Start: Run: docker events --format {{json .}} --filter status=start
[831 ms] Start: Starting container
[833 ms] Start: Run: docker run -a STDOUT -a STDERR --mount type=bind,source=c:\Nikiforov\dev\dev-containers-test1,target=/workspaces/dev-containers-test1,consistency=cached -l vsch.quality=stable -l vsch.remote.devPort=0 -l vsch.local.folder=c:\Nikiforov\dev\dev-containers-test1 --entrypoint /bin/sh devcontainers/dotnet:0.2.0 -c echo Container started ; trap "exit 0" 15; while sleep 1 & wait $!; do :; done
[4668 ms] Stop (3837 ms): Starting container
[4669 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Nikiforov\dev\dev-containers-test1 --filter label=vsch.quality=stable
Container started
[4943 ms] Stop (274 ms): Run: docker ps -q -a --filter label=vsch.local.folder=c:\Nikiforov\dev\dev-containers-test1 --filter label=vsch.quality=stable
[4945 ms] Start: Run: docker inspect --type container ba95f15d22bf
[5206 ms] Stop (261 ms): Run: docker inspect --type container ba95f15d22bf
[5207 ms] Start: Inspecting container
[5207 ms] Start: Run: docker inspect --type container ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c
[5467 ms] Stop (260 ms): Run: docker inspect --type container ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c
[5468 ms] Stop (261 ms): Inspecting container
[5468 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=977362ce-4747-4152-a342-2e13d78785421600844413156 ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c /bin/sh
[5484 ms] Start: Run in container: uname -m
[5909 ms] x86_64
[5910 ms]
[5910 ms] Stop (426 ms): Run in container: uname -m
[5910 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[5933 ms] NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
[5933 ms]
[5933 ms] Stop (23 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[5934 ms] Start: Run in container: cat /etc/passwd
[5941 ms] Stop (7 ms): Run in container: cat /etc/passwd
[5942 ms] Start: Updating configuration state
[5951 ms] Stop (9 ms): Updating configuration state
[5951 ms] Start: Setup shutdown monitor
[5957 ms] Forking shutdown monitor: c:\Users\HYS.vscode\extensions\ms-vscode-remote.remote-containers-0.140.1\dist\shutdownMonitorProcess \.\pipe\vscode-remote-containers-e9eb89756e95f43ff5d5dd57a56710124d4a99e5-sock singleContainer Debug c:\Users\HYS\AppData\Roaming\Code\logs\20200922T142556\exthost12\ms-vscode-remote.remote-containers
[5981 ms] Stop (30 ms): Setup shutdown monitor
[5981 ms] Start: Run in container: test -d /root/.vscode-server
[6016 ms]
[6016 ms]
[6016 ms] Exit code 1
[6016 ms] Stop (35 ms): Run in container: test -d /root/.vscode-server
[6017 ms] Start: Run in container: test -d /root/.vscode-remote
[6026 ms]
[6027 ms]
[6027 ms] Exit code 1
[6027 ms] Stop (10 ms): Run in container: test -d /root/.vscode-remote
[6027 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[6072 ms]
[6072 ms]
[6072 ms] Stop (45 ms): Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[6072 ms] Start: Run in container: mkdir -p '/root/.vscode-server/data/Machine' && cat >'/root/.vscode-server/data/Machine/settings.json' <<'settingsJSON'
[6082 ms]
[6082 ms]
[6082 ms] Stop (10 ms): Run in container: mkdir -p '/root/.vscode-server/data/Machine' && cat >'/root/.vscode-server/data/Machine/settings.json' <<'settingsJSON'
[6082 ms] Start: Run in container: test -d /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf
[6088 ms]
[6088 ms]
[6088 ms] Exit code 1
[6089 ms] Stop (7 ms): Run in container: test -d /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf
[6091 ms] Installing VS Code Server for commit 58bb7b2331731bf72587010e943852e13e6fd3cf
[6091 ms] Start: Run in container: mkdir -p /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050
[6105 ms]
[6105 ms]
[6105 ms] Stop (14 ms): Run in container: mkdir -p /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050
[6202 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=3919 2>/dev/null; dd iflag=fullblock bs=1044 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050
[9273 ms]
[9273 ms]
[9273 ms] Stop (3071 ms): Run in container: (dd iflag=fullblock bs=8192 count=3919 2>/dev/null; dd iflag=fullblock bs=1044 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050
[9273 ms] Start: Run in container: mv -n /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050 /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf
[9287 ms]
[9287 ms]
[9287 ms] Stop (14 ms): Run in container: mv -n /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf_1600844421050 /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf
[9288 ms] Start: Launching Remote-Containers helper.
[9289 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[9327 ms] Stop (38 ms): Run: gpgconf --list-dir agent-extra-socket
[9328 ms] Stop (40 ms): Launching Remote-Containers helper.
[9329 ms] Stop (40 ms): Run: gpgconf --list-dir agent-extra-socket
[9329 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js' >/tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js
[9346 ms]
[9346 ms]
[9346 ms] Stop (17 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js' >/tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js
[9347 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-4b8c85847bc5d6978285065781d401b2fab63e13.js' >/tmp/vscode-remote-containers-server-4b8c85847bc5d6978285065781d401b2fab63e13.js
[9357 ms]
[9357 ms]
[9357 ms] Stop (10 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-4b8c85847bc5d6978285065781d401b2fab63e13.js' >/tmp/vscode-remote-containers-server-4b8c85847bc5d6978285065781d401b2fab63e13.js
[9358 ms] Start: Run: docker exec -i -u root -e REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-4b8c85847bc5d6978285065781d401b2fab63e13.sock"] -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-4b8c85847bc5d6978285065781d401b2fab63e13.sock ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/node /tmp/vscode-remote-containers-server-4b8c85847bc5d6978285065781d401b2fab63e13.js
[10208 ms] Start: Run in container: # Clone & install dotfiles
[12707 ms] /root/dotfiles/src/dev-container/boot/install.sh not executable
[12707 ms] Cloning into '/root/dotfiles'...
[12707 ms] Stop (2499 ms): Run in container: # Clone & install dotfiles
[12709 ms] Start: Run in container: # Test for /root/.gitconfig and git
[12713 ms]
[12714 ms]
[12714 ms] Stop (5 ms): Run in container: # Test for /root/.gitconfig and git
[12714 ms] Start: Run in container: # Copy C:\Users\HYS.gitconfig to /root/.gitconfig
[12722 ms]
[12722 ms]
[12722 ms] Stop (8 ms): Run in container: # Copy C:\Users\HYS.gitconfig to /root/.gitconfig
[12723 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/node /tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js $; }; f' || true
[12735 ms]
[12735 ms]
[12735 ms] Stop (12 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/node /tmp/vscode-remote-containers-4b8c85847bc5d6978285065781d401b2fab63e13.js $; }; f' || true
[12738 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[12745 ms]
[12745 ms]
[12745 ms] Stop (7 ms): Run in container: # Test for /root/.ssh/known_hosts and ssh
[12745 ms] Start: Run in container: # Copy C:\Users\HYS.ssh\known_hosts to /root/.ssh/known_hosts
[12751 ms]
[12751 ms]
[12751 ms] Stop (6 ms): Run in container: # Copy C:\Users\HYS.ssh\known_hosts to /root/.ssh/known_hosts
[12752 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[12764 ms]
[12764 ms]
[12764 ms] Stop (12 ms): Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[12770 ms] Start: Run in container: for pid in cd /proc && ls -d [0-9]*; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null
[12850 ms] Stop (80 ms): Run in container: for pid in cd /proc && ls -d [0-9]*; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null
[12853 ms] Start: Run in container: /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/server.sh --disable-user-env-probe --use-host-proxy --port 0 --extensions-download-dir /root/.vscode-server/extensionsCache
[13246 ms]
*
[13349 ms] IP Address: 172.17.0.2
[13359 ms] Extension host agent listening on 44687
[13360 ms]
[13360 ms] Start: Run in container: echo 44687 >/root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/.devport
[13360 ms] [07:00:26] Extension host agent started.
[13363 ms]
[13363 ms]
[13363 ms] Stop (3 ms): Run in container: echo 44687 >/root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/.devport
[13366 ms] Forwarding local port 44687 to container port 44687
[13374 ms] Stop (13322 ms): Resolving remote
[13434 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=977362ce-4747-4152-a342-2e13d78785421600844413156 ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/node -e
[13437 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=977362ce-4747-4152-a342-2e13d78785421600844413156 ba95f15d22bfbaec42fa6ce68d7b0895e3c55c01dfd08767f9ebbb0dc3bfc44c /root/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/node -e
[14959 ms] [07:00:28] [::ffff:127.0.0.1][f0579ec7][ExtensionHostConnection] New connection established.
[14976 ms] [07:00:28] [::ffff:127.0.0.1][f0579ec7][ExtensionHostConnection] <165> Launched Extension Host Process.
[15081 ms] [07:00:28] [::ffff:127.0.0.1][557f5201][ManagementConnection] New connection established.
Looks like it has to deal with something like the content of the installation script. For me, making the installation script more simple helped. Sorry, I don't know what exactly fixed install.sh not executable error for me.
Using the short form "frozenbonito/dotfiles" uses https to clone. To use ssh use [email protected]:frozenbonito/dotfiles.git as the URL.
You will also need a fix that will be in the next release that makes your local .ssh/known_hosts available in the container early, so git clone for the dotfiles already has it.
Verified that https://github.com/microsoft/vscode-remote-release/issues/3630#issuecomment-697177376 works as well as private repos work
Most helpful comment
Using the short form
"frozenbonito/dotfiles"useshttpsto clone. To usesshuse[email protected]:frozenbonito/dotfiles.gitas the URL.You will also need a fix that will be in the next release that makes your local
.ssh/known_hostsavailable in the container early, sogit clonefor the dotfiles already has it.