-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Labels
containersIssue in vscode-remote containersIssue in vscode-remote containers
Description
- VSCode Version: 1.105.1
- Local OS Version: Ubuntu 24.04
- Remote OS Version:Ubuntu 24.04
- Remote Extension/Connection Type: Dev Containers
The problem I am facing is that randomly, when I attach a vscode instance using "Attach to running container instance.." it will attach to a different container, with the environment of the correct container but the filesystem of a random running container. Usually this wrong container also has another vscode attached to it.
This happens over SSH Remote as well as locally.
- Logs:
[509 ms] Dev Containers 0.429.0 over Remote - SSH 0.120.0 in VS Code 1.105.1 (7d842fb85a0275a4a8e4d7e040d2625abbf7f084).
[508 ms] Start: Resolving Remote
[511 ms] Setting up container: /container_a
[511 ms] Host authority: ssh-remote+planck.hq.keybotic.com
[513 ms] Start: Loading environment from ExecServer
[541 ms] Host OS: linux 6.14.0-33-generic
[541 ms] Host CWD: undefined
[542 ms] Start: Run: /bin/sh
[600 ms] Start: Run in host: echo ~
[684 ms] /home/victor.lopez
[685 ms]
[685 ms] Start: Run in host: id -un
[753 ms] victor.lopez
[753 ms]
[753 ms] Start: Run in host: (command -v getent >/dev/null 2>&1 && getent passwd 'victor.lopez' || grep -E '^victor\.lopez|^[^:]*:[^:]*:victor\.lopez:' /etc/passwd || true)
[785 ms] userEnvProbe: loginInteractiveShell (default)
[785 ms] userEnvProbe: not found in cache
[786 ms] userEnvProbe shell: /bin/bash
[895 ms] userEnvProbe PATHs:
Probe: '/usr/lib/ccache:/home/victor.lopez/.local/bin:/home/victor.lopez/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/victor.lopez/.fzf/bin'
Container: None
[951 ms] Start: Run: docker inspect --type container /container_a
[1178 ms] Start: Check Docker is running
[1178 ms] Start: Run: docker version
[1287 ms] Client: Docker Engine - Community
[1287 ms] Version: 28.5.1
API version: 1.51
Go version: go1.24.8
Git commit: e180ab8
Built: Wed Oct 8 12:17:26 2025
OS/Arch: linux/amd64
[1287 ms] Context: default
[1287 ms] Server: Docker Engine - Community
[1287 ms] Engine:
[1287 ms] Version: 28.5.1
API version: 1.51 (minimum version 1.24)
Go version:
[1287 ms] go1.24.8
Git commit: f8215cc
Built:
[1287 ms] Wed Oct 8 12:17:26 2025
OS/Arch: linux/amd64
Experimental: false
[1287 ms]
containerd:
[1288 ms] Version: v1.7.28
GitCommit: b98a3aace656320842a23f4a392a33f46af97866
[1288 ms] runc:
[1288 ms] Version: 1.3.0
[1288 ms] GitCommit: v1.3.0-0-g4ca628d1
docker-init:
[1288 ms] Version:
[1288 ms] 0.19.0
GitCommit: de40ad0
[1390 ms] Running Dev Containers CLI: set-up --container-id 782a2615463c9e714b3a9bbee4f92ffb22d9da3a43220967854b23e3dfa862b2 --container-session-data-folder /tmp/devcontainers-0f077024-3820-47d5-bd8a-4d5f94645b551761728317749 --log-level debug --log-format json --config /tmp/devcontainer-config-c6ed15ed-88b7-43ed-8f6f-5e3e4895a1e2.json --default-user-env-probe loginInteractiveShell --skip-post-create --include-configuration --include-merged-configuration
[1391 ms] Start: Checking for Dev Containers CLI
[1503 ms] Start: Run: /home/victor.lopez/.vscode-server/cli/servers/Stable-7d842fb85a0275a4a8e4d7e040d2625abbf7f084/server/node /home/victor.lopez/.vscode-remote-containers/dist/dev-containers-cli-0.429.0/dist/spec-node/devContainersSpecCLI.js set-up --container-id 782a2615463c9e714b3a9bbee4f92ffb22d9da3a43220967854b23e3dfa862b2 --container-session-data-folder /tmp/devcontainers-0f077024-3820-47d5-bd8a-4d5f94645b551761728317749 --log-level debug --log-format json --config /tmp/devcontainer-config-c6ed15ed-88b7-43ed-8f6f-5e3e4895a1e2.json --default-user-env-probe loginInteractiveShell --skip-post-create --include-configuration --include-merged-configuration
[1633 ms] @devcontainers/cli 0.80.1. Node.js v22.19.0. linux 6.14.0-33-generic x64.
[1633 ms] Start: Run: docker buildx version
[1674 ms] github.com/docker/buildx v0.29.1 a32761aeb3debd39be1eca514af3693af0db334b
[1674 ms]
[1674 ms] Start: Run: docker -v
[1685 ms] Start: Run: docker inspect --type container 782a2615463c9e714b3a9bbee4f92ffb22d9da3a43220967854b23e3dfa862b2
[1697 ms] Start: Inspecting container
[1697 ms] Start: Run: docker inspect --type container 782a2615463c9e714b3a9bbee4f92ffb22d9da3a43220967854b23e3dfa862b2
[1709 ms] Start: Run in container: /bin/sh
[1710 ms] Start: Run in container: uname -m
[1751 ms] x86_64
[1751 ms]
[1751 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1752 ms] PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
[1752 ms]
[1752 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'victor.lopez' || grep -E '^victor\.lopez|^[^:]*:[^:]*:victor\.lopez:' /etc/passwd || true)
[1753 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[1753 ms]
[1753 ms]
[1753 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[1754 ms]
[1754 ms]
[1746 ms] Start: Inspecting container
[1746 ms] Start: Run: docker inspect --type container 782a2615463c9e714b3a9bbee4f92ffb22d9da3a43220967854b23e3dfa862b2
[1866 ms] Start: Run in container: /bin/sh
[1925 ms] Start: Run in container: uname -m
[2039 ms] x86_64
[2039 ms]
[2040 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2108 ms] PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
[2108 ms]
[2109 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'victor.lopez' || grep -E '^victor\.lopez|^[^:]*:[^:]*:victor\.lopez:' /etc/passwd || true)
[2179 ms] Start: Run in container: test -d '/home/victor.lopez/.vscode-server'
[2246 ms]
[2246 ms]
[2247 ms] Start: Run in container: test ! -f '/home/victor.lopez/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/victor.lopez/.vscode-server/data/Machine' && { > '/home/victor.lopez/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2276 ms]
[2276 ms]
[2276 ms] Exit code 1
[2277 ms] Start: Run in container: cat /home/victor.lopez/.vscode-server/data/Machine/settings.json
[2358 ms] {
"github.copilot.chat.codeGeneration.instructions": [
{
"text": "This workspace is in a dev container running on \"Ubuntu 20.04.6 LTS\".\n\nUse `\"$BROWSER\" <url>` to open a webpage in the host's default browser.\n\nSome of the command line tools available on the `PATH`: `apt`, `dpkg`, `docker`, `git`, `curl`, `wget`, `ssh`, `scp`, `rsync`, `gpg`, `ps`, `netstat`, `top`, `find`, `grep`, `zip`, `unzip`, `tar`, `gzip`, `bzip2`, `xz`"
}
],
"python.defaultInterpreterPath": "/bin/python3"
}
[2358 ms]
[2359 ms] Start: Run in container: test ! -f '/home/victor.lopez/.vscode-server/data/Machine/.writeMachineMCPConfigMarker' && set -o noclobber && mkdir -p '/home/victor.lopez/.vscode-server/data/Machine' && { > '/home/victor.lopez/.vscode-server/data/Machine/.writeMachineMCPConfigMarker' ; } 2> /dev/null
[2443 ms]
[2443 ms]
[2444 ms] Exit code 1
[2444 ms] Start: Run in container: test -d '/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084'
[2522 ms]
[2523 ms]
[2523 ms] Start: Run in container: test -x '/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/bin/helpers/check-requirements.sh'
[2554 ms]
[2554 ms]
[2554 ms] Start: Run in container: '/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/bin/helpers/check-requirements.sh'
[2634 ms]
[2634 ms]
[2635 ms] Start: Launching Dev Containers helper.
[2635 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-9bd52611-4f76-4771-b94e-1d434fb265b8.sock) forwarded to remote host (/tmp/ssh-mLRqLVx8Bp/agent.3587396).
[2635 ms] Start: Run in container: gpgconf --list-dirs
[2666 ms] sysconfdir:/etc/gnupg
bindir:/usr/bin
libexecdir:/usr/lib/gnupg
libdir:/usr/lib/x86_64-linux-gnu/gnupg
datadir:/usr/share/gnupg
localedir:/usr/share/locale
socketdir:/home/victor.lopez/.gnupg
dirmngr-socket:/home/victor.lopez/.gnupg/S.dirmngr
keyboxd-socket:/home/victor.lopez/.gnupg/S.keyboxd
agent-ssh-socket:/home/victor.lopez/.gnupg/S.gpg-agent.ssh
agent-extra-socket:/home/victor.lopez/.gnupg/S.gpg-agent.extra
agent-browser-socket:/home/victor.lopez/.gnupg/S.gpg-agent.browser
agent-socket:/home/victor.lopez/.gnupg/S.gpg-agent
homedir:/home/victor.lopez/.gnupg
[2666 ms]
[2666 ms] Start: Run in container: ls '/home/victor.lopez/.gnupg/private-keys-v1.d' 2>/dev/null
[2748 ms]
[2749 ms]
[2749 ms] Start: Run in container: grep -e '^s*use-keyboxds*$' '/home/victor.lopez/.gnupg/common.conf' 2>/dev/null
[2829 ms]
[2829 ms]
[2829 ms] Exit code 2
[2830 ms] Start: Run: gpgconf --list-dirs
[2951 ms] sysconfdir:/etc/gnupg
bindir:/usr/bin
libexecdir:/usr/lib/gnupg
libdir:/usr/lib/x86_64-linux-gnu/gnupg
datadir:/usr/share/gnupg
localedir:/usr/share/locale
socketdir:/run/user/1001/gnupg
dirmngr-socket:/run/user/1001/gnupg/S.dirmngr
keyboxd-socket:/run/user/1001/gnupg/S.keyboxd
agent-ssh-socket:/run/user/1001/gnupg/S.gpg-agent.ssh
agent-extra-socket:/run/user/1001/gnupg/S.gpg-agent.extra
agent-browser-socket:/run/user/1001/gnupg/S.gpg-agent.browser
agent-socket:/run/user/1001/gnupg/S.gpg-agent
homedir:/home/victor.lopez/.gnupg
[2951 ms]
[3035 ms] Start: Run in container: test -f '/home/victor.lopez/.gnupg/pubring.kbx'
[3063 ms]
[3063 ms]
[3063 ms] GPG forwarding: /home/victor.lopez/.gnupg/pubring.kbx exists in container.
[3064 ms] Start: Run in container: test -f '/home/victor.lopez/.gnupg/pubring.gpg'
[3145 ms]
[3146 ms]
[3146 ms] GPG forwarding: /home/victor.lopez/.gnupg/pubring.gpg exists in container.
[3146 ms] Start: Run in container: test -f '/home/victor.lopez/.gnupg/trustdb.gpg'
[3226 ms]
[3227 ms]
[3227 ms] GPG forwarding: /home/victor.lopez/.gnupg/trustdb.gpg exists in container.
[3227 ms] Start: Run in container: mkdir -p -m 700 '/home/victor.lopez/.gnupg'
[3227 ms] gpg-agent: Socket in container (/home/victor.lopez/.gnupg/S.gpg-agent) forwarded to remote host (/run/user/1001/gnupg/S.gpg-agent.extra).
[3309 ms]
[3309 ms]
[3309 ms] Start: Run in container: (command -v 'docker' || command -v 'oras' || command -v 'skopeo') >/dev/null 2>&1
[3309 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[3350 ms]
[3350 ms]
[3350 ms] Start: Run in container: /bin/sh
[3351 ms] userEnvProbe: loginInteractiveShell (default)
[3351 ms] Start: Run in container: test -f '/tmp/devcontainers-0f077024-3820-47d5-bd8a-4d5f94645b551761728317749/env-loginInteractiveShell.json'
[3418 ms]
[3418 ms]
[3418 ms] Exit code 1
[3418 ms] userEnvProbe: not found in cache
[3418 ms] userEnvProbe shell: /bin/bash
[3487 ms] Start: Run in container: echo ~
[3577 ms] Start: Run in container: # Test for /home/victor.lopez/.ssh/known_hosts and ssh
[3577 ms] /home/victor.lopez
[3577 ms]
[3577 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-9bd52611-4f76-4771-b94e-1d434fb265b8.js' >/tmp/vscode-remote-containers-9bd52611-4f76-4771-b94e-1d434fb265b8.js
[3657 ms] /home/victor.lopez/.ssh/known_hosts exists
[3659 ms]
[3660 ms] Exit code 1
[3660 ms]
[3660 ms]
[3661 ms] Start: Run in container: /bin/sh
[3663 ms] Start: Run in container: cat ~/.docker/config.json || echo "{
[3786 ms] {REDACTED}
[3786 ms]
[3824 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /tmp/vscode-remote-containers-9bd52611-4f76-4771-b94e-1d434fb265b8.js git-credential-helper $*; }; f' || true
[3906 ms]
[3906 ms]
[3907 ms] Start: Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-9bd52611-4f76-4771-b94e-1d434fb265b8' >/usr/local/bin/docker-credential-dev-containers-9bd52611-4f76-4771-b94e-1d434fb265b8
[3907 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[3949 ms]
[3949 ms]
[3949 ms] Start: Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-9bd52611-4f76-4771-b94e-1d434fb265b8
[4079 ms]
[4080 ms]
[4082 ms] Start: Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-9bd52611-4f76-4771-b94e-1d434fb265b8' >~/.docker/config.json
[4186 ms]
[4186 ms]
[4186 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-9bd52611-4f76-4771-b94e-1d434fb265b8.js' >/tmp/vscode-remote-containers-server-9bd52611-4f76-4771-b94e-1d434fb265b8.js_1761728322923
[4232 ms] Start: Run in container: cat '/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/product.json'
[4288 ms]
[4289 ms]
[4359 ms] Start: Run in container: readlink -f '/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084'
[4422 ms] /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084
[4422 ms]
[4423 ms] Extension host agent is already running.
[4424 ms] Start: Run in container: cat '/home/victor.lopez/.vscode-server/data/Machine/.devport-7d842fb85a0275a4a8e4d7e040d2625abbf7f084' 2>/dev/null
[4544 ms] 37827
[4544 ms]
[4545 ms] Start: Run in container: cat '/home/victor.lopez/.vscode-server/data/Machine/.connection-token-7d842fb85a0275a4a8e4d7e040d2625abbf7f084'
[4546 ms] userEnvProbe PATHs:
Probe: '/usr/lib/ccache:/home/victor.lopez/.local/bin:/home/victor.lopez/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/victor.lopez/.fzf/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Merged: '/usr/lib/ccache:/home/victor.lopez/.local/bin:/home/victor.lopez/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/victor.lopez/.fzf/bin'
[4598 ms] 686c240c-0a9a-4f31-9e46-3274890fea92
[4598 ms]
[4599 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-0f077024-3820-47d5-bd8a-4d5f94645b551761728317749' && cat > '/tmp/devcontainers-0f077024-3820-47d5-bd8a-4d5f94645b551761728317749/env-loginInteractiveShell.json' << 'envJSON'
[4599 ms] Port forwarding for container port 37827 starts listening on local port.
[4600 ms] Port forwarding local port 45869 to container port 37827
[4657 ms]
[4657 ms]
[4658 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[4659 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[4662 ms] Initializing configuration support...
[4662 ms] Internal initialization of dev container support package...
[4666 ms] Port forwarding connection from 55202 > 45869 > 37827 in the container.
[4667 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[4766 ms] Start: Run in container: # Test for /home/victor.lopez/.gitconfig and git
[4868 ms] [user]
[alias]
[color]
[core]
[pack]
[pull]
/home/victor.lopez/.gitconfig exists
[4869 ms]
[4869 ms] Exit code 1
[4869 ms] Port forwarding 55202 > 45869 > 37827 stderr: Connection established
[4899 ms] Port forwarding connection from 55214 > 45869 > 37827 in the container.
[4899 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[4961 ms] Start: Run in container: # Test for /home/victor.lopez/.config/git/config and git
[5008 ms] /home/victor.lopez/.config/git/config exists
[5008 ms]
[5008 ms] Exit code 1
[5008 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /tmp/vscode-remote-containers-9bd52611-4f76-4771-b94e-1d434fb265b8.js git-credential-helper $*; }; f' || true
[5039 ms] Port forwarding 55214 > 45869 > 37827 stderr: Connection established
[5056 ms]
[5057 ms] error: could not write config file /home/victor.lopez/.gitconfig: Device or resource busy
[5583 ms] Port forwarding connection from 55228 > 45869 > 37827 in the container.
[5586 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[5692 ms] Port forwarding connection from 55242 > 45869 > 37827 in the container.
[5695 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[5704 ms] Port forwarding connection from 55246 > 45869 > 37827 in the container.
[5705 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[5706 ms] Port forwarding connection from 55262 > 45869 > 37827 in the container.
[5707 ms] Start: Run in container: /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e
[6033 ms] Port forwarding 55228 > 45869 > 37827 stderr: Connection established
[6067 ms] Port forwarding 55246 > 45869 > 37827 stderr: Connection established
[6067 ms] Port forwarding 55242 > 45869 > 37827 stderr: Connection established
[6068 ms] Port forwarding 55262 > 45869 > 37827 stderr: Connection established
[10682 ms] Start: Run in container: cat /proc/62111/environ
[12029 ms] Port forwarding 55228 > 45869 > 37827 stderr: Remote close
[12042 ms] Port forwarding 55228 > 45869 > 37827 terminated with code 0 and signal null.
[12068 ms] Port forwarding 55242 > 45869 > 37827 stderr: Remote close
[12069 ms] Port forwarding 55246 > 45869 > 37827 stderr: Remote close
[12069 ms] Port forwarding 55262 > 45869 > 37827 stderr: Remote close
[12094 ms] Port forwarding 55242 > 45869 > 37827 terminated with code 0 and signal null.
[12094 ms] Port forwarding 55246 > 45869 > 37827 terminated with code 0 and signal null.
[12095 ms] Port forwarding 55262 > 45869 > 37827 terminated with code 0 and signal null.
[65018 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[65019 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[125343 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[125343 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[185607 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[185609 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[245882 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[245883 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[306155 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[306156 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[366401 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[366411 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[426691 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[426691 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
[486976 ms] Start: Run in container: /bin/sh -c # Watch machine settings
[486987 ms] Start: Run in container: /bin/sh -c # Watch installed extensions
Steps to Reproduce:
- Attach a vscode instance to a running container (not Dev Container, a random container created with
docker run...) - Open a new vscode window, try to attach to a different container
- Sometimes, it will attach to the container in 1. Once it happens you must restart docker daemon to be able to attach to container in 1.
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
This may or not may be useful, but when running step 2 above, these new processes appear on the target container:
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /tmp/vscode-remote-containers-server-9bd52611-4f76-4771-b94e-1d434fb265b8.js
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ var c=Object.create;var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var p=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!f.call(t,o)&&o!==n&&s(t,o,{get:()=>e[o],enumerable:!(i=l(e,o))||i.enumerable});return t};var C=(t,e,n)=>(n=t!=null?c(g(t)):{},p(e||!t||!t.__esModule?s(n,"default",{value:t,enumerable:!0}):n,t));var u=C(require("http"));var R=[{id:"azure",url:"http://169.254.169.254/metadata/instance?api-version=2019-03-11",headers:{Metadata:"true"},match:/azEnvironment/},{id:"digitalocean",url:"http://169.254.169.254/metadata/v1/id",match:/^\d{9}/},{id:"aws",url:"http://169.254.169.254/latest/meta-data/instance-id",match:/^i-[0-9a-f]{8}/},{id:"gcp",url:"http://metadata.google.internal/computeMetadata/v1/instance/id",headers:{"Metadata-Flavor":"Google"},match:/^\d{10}/}];async function P(){let t,e=new Promise(n=>t=n);return Promise.race([Promise.all(R.map(({id:n,url:i,headers:o,match:r})=>v(i,o,e).then(a=>{r.test(a)&&t(n)},a=>{}))),new Promise(n=>setTimeout(n,7e3).unref())]).then(()=>t()),e}async function v(t,e,n){return new Promise((i,o)=>{let r=u.get(t,{headers:e},a=>{if(a.statusCode<200||a.statusCode>299)return a.destroy(),o(new Error(`Status ${a.statusCode}`));let d=[];a.on("data",m=>d.push(m)),a.on("end",()=>i(Buffer.concat(d).toString("utf8"))),a.on("error",o)});r.on("error",o),n.then(()=>r.abort())})}P().then(t=>console.log(t||"")); //# sourceMappingURL=remoteCloudGuesser.js.map
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node -e ....const net = require('net'); ....const fs = require('fs'); ....process.stdin.pause(); ....const client = net.createConnection({ host: '127.0.0.1', port: 37827 }, () => { .....console.error('Connection established'); .....client.pipe(process.stdout); .....process.stdin.pipe(client); ....}); ....client.on('close', function (hadError) { .....console.error(hadError ? 'Remote close with error' : 'Remote close'); .....process.exit(hadError ? 1 : 0); ....}); ....client.on('error', function (err) { .....process.stderr.write(err && (err.stack || err.message) || String(err)); ....}); ....process.stdin.on('close', function (hadError) { .....console.error(hadError ? 'Remote stdin close with error' : 'Remote stdin close'); .....process.exit(hadError ? 1 : 0); ....}); ....process.on('uncaughtException', function (err) { .....fs.writeSync(process.stderr.fd, `Uncaught Exception: ${String(err && (err.stack || err.message) || err)}\n`); ....}); ...
And these other processes appear in the wrong container, which is the one vscode attaches to:
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/out/bootstrap-fork --type=fileWatcher
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node --dns-result-order=ipv4first /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /home/victor.lopez/.vscode-server/extensions/kylinideteam.cmake-intellisence-0.4.0/dist/server.js --node-ipc --clientProcessId=61504
/usr/bin/bash --init-file /home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh
/home/victor.lopez/.vscode-server/bin/7d842fb85a0275a4a8e4d7e040d2625abbf7f084/node /home/victor.lopez/.vscode-server/extensions/ms-python.vscode-pylance-2025.9.1/dist/server.bundle.js --cancellationReceive=file:c608742ae2e3f9f13423541b550592ac6371279d9e --node-ipc --clientProcessId=61504
Metadata
Metadata
Assignees
Labels
containersIssue in vscode-remote containersIssue in vscode-remote containers