0

按照 VS Remote 扩展的要求,我已将 podman 的别名设置为 docker。扩展可以看到我正在运行的容器,这是尝试将我的 VS 代码附加到它时的全部输出:

[0 ms] Start: Resolving remote
[1 ms] Setting up container fedora-toolbox-32

[2 ms] Start: Run: docker inspect --type container fedora-toolbox-32
[80 ms] Start: Check Docker is running
[80 ms] Start: Run: docker info
[182 ms] Start: Inspecting container
[182 ms] Start: Run: docker inspect --type container 91b10038e8323531d655beeed94e3e56fc05c36e218754a3d1578a7000f40726
[255 ms] Start: Run: docker exec -i -u root:root -e VSCODE_REMOTE_CONTAINERS_SESSION=5d66fe7d-848b-4eb9-a07a-aee0694e49561590850922683 91b10038e8323531d655beeed94e3e56fc05c36e218754a3d1578a7000f40726 /bin/sh
[258 ms] Start: Run in container: uname -m
[353 ms] x86_64
[354 ms] 
[354 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[356 ms] NAME=Fedora
VERSION="32 (Container Image)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (Container Image)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:32"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=32
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=32
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container
[357 ms] 
[357 ms] Start: Run in container: cat /etc/passwd
[360 ms] User root:root not found in /etc/passwd.
[361 ms] Start: Run in container: test -d /root/.vscode-server
[362 ms] 
[362 ms] 
[362 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[365 ms] 
[365 ms] 
[365 ms] Exit code 1
[366 ms] Start: Run in container: test -d /root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a
[367 ms] 
[367 ms] 
[367 ms] Start: Launching Remote-Containers helper.
[369 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-cd2fa157eedf7ecfcb3234ddc66c06135fafbef8.js' >/tmp/vscode-remote-containers-cd2fa157eedf7ecfcb3234ddc66c06135fafbef8.js
[374 ms] 
[374 ms] 
[374 ms] Start: Run in container: # Copy .gitconfig
[375 ms] /root/.gitconfig exists
[375 ms] 
[376 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-cd2fa157eedf7ecfcb3234ddc66c06135fafbef8.js' >/tmp/vscode-remote-containers-server-cd2fa157eedf7ecfcb3234ddc66c06135fafbef8.js
[393 ms] 
[393 ms] 
[393 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/node /tmp/vscode-remote-containers-cd2fa157eedf7ecfcb3234ddc66c06135fafbef8.js $*; }; f' || true
[402 ms] 
[402 ms] 
[402 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[406 ms] 
[406 ms] 
[406 ms] Exit code 1
[408 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
[499 ms] Remote-Containers server: Error: open executable: Permission denied: OCI runtime permission denied error
[506 ms] Remote-Containers server terminated (code: 126, signal: null).
[983 ms] Start: Run: docker exec -i -u root:root -e SHELL=/bin/sh -e VSCODE_AGENT_FOLDER=/root/.vscode-server -w /root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a 91b10038e8323531d655beeed94e3e56fc05c36e218754a3d1578a7000f40726 /root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/server.sh --disable-user-env-probe --use-host-proxy --disable-telemetry --port 0
[1068 ms] Command failed: /root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/server.sh --disable-user-env-probe --use-host-proxy --disable-telemetry --port 0

我对容器很陌生,所以我不知道我是否做错了什么,或者我应该将它报告到存储库的问题中。

谢谢。

4

0 回答 0