英文:
Docker, VS Code, Dev Containers & httpd: localhost:<port_number> loading endlessly
问题
无法在 Dev Containers 上运行 httpd。本地主机:<port_number> 无限加载。
重现步骤:
要求
- Docker(CLI)
- Docker httpd 镜像
- VS Code
- Dev Containers VS Code 扩展
目录结构:
src/index.html
.devcontainer.json
compose.yml
Dockerfile
.devcontainer.json
{
"dockerComposeFile": "compose.yml",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"uid": "1001",
"gid": "1001"
}
},
"forwardPorts": [80],
"name": "Foo App",
"service": "httpd",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}
compose.yml
services:
httpd:
build: .
command: sleep infinity
user: foo
volumes:
- ../:/workspaces:cached
- ./src/:/usr/local/apache2/htdocs/
Dockerfile
FROM httpd:2.4
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y git \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Dev Container 端口列表
80 到本地主机:<port_number>
实际结果:
本地主机:<port_number> 无限加载
预期结果:
本地主机:<port_number> 加载 index.html
请提供指导。谢谢!
英文:
Unable to run httpd on Dev Containers. Localhost:<port_number> loads endlessly.
Steps to reproduce:
requirement
- Docker (CLI)
- Docker httpd image
- VS Code
- Dev Containers VS Code extension
directory structure:
src/index.html
.devcontainer.json
compose.yml
Dockerfile
.devcontainer.json
{
"dockerComposeFile": "compose.yml",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"uid": "1001",
"gid": "1001"
}
},
"forwardPorts": [80],
"name": "Foo App",
"service": "httpd",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}
compose.yml
services:
httpd:
build: .
command: sleep infinity
user: foo
volumes:
- ../:/workspaces:cached
- ./src/:/usr/local/apache2/htdocs/
Dockerfile
FROM httpd:2.4
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y git \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Dev Container ports list
80 to localhost:<port_number>
Actual results:
localhost:<port_number> loading endlessly
Expected results:
localhost:<port_number> load the index.html
Directions please. Thank You!
The logs
[90995 ms] Start: Run: docker inspect --type image httpd-httpd
[91202 ms] Start: Run: docker build -f /tmp/devcontainercli-webdev/updateUID.Dockerfile-0.42.0 -t vsc-httpd-3e5a7594542124ebbd98ae3598ec20664e5960be38ee2795d19ecc2a42be4bf8-uid --build-arg BASE_IMAGE=httpd-httpd --build-arg REMOTE_USER=foo --build-arg NEW_UID=1000 --build-arg NEW_GID=1000 --build-arg IMAGE_USER=root /home/webdev/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[+] Building 0.9s (6/6) FINISHED
=> [internal] load build definition from updateUID.Dockerfile-0.42.0 0.0s
=> => transferring dockerfile: 1.33kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/httpd-httpd:latest 0.0s
=> [1/2] FROM docker.io/library/httpd-httpd 0.2s
=> [2/2] RUN eval $(sed -n "s/foo:[^:]*:\([^:]*\):\([^:]*\):[^:]*:\([^:] 0.4s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:f8cff4aa3e9aa02b7cdbb497ed9cd00b40218c5f6eeae 0.0s
=> => naming to docker.io/library/vsc-httpd-3e5a7594542124ebbd98ae3598ec 0.0s
[92331 ms] Docker Compose override file for creating container:
services:
'httpd':
image: vsc-httpd-3e5a7594542124ebbd98ae3598ec20664e5960be38ee2795d19ecc2a42be4bf8-uid
entrypoint: ["/bin/sh", "-c", "echo Container started\n
trap \"exit 0\" 15\n
\n
exec \"$$@\"\n
while sleep 1 & wait $$!; do :; done", "-"]
labels:
- 'devcontainer.local_folder=/home/webdev/Documents/docker/httpd'
- 'devcontainer.config_file=/home/webdev/Documents/docker/httpd/.devcontainer.json'
volumes:
- vscode:/vscode
- /run/user/1000/wayland-0:/tmp/vscode-wayland-9a56d2de-855f-43ef-ab9c-31754e4dca9f.sock
volumes:
vscode:
external: true
[92331 ms] Writing docker-compose.devcontainer.containerFeatures-1688371347340.yml to /home/webdev/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose
[92332 ms] Start: Run: docker compose --project-name httpd -f /home/webdev/Documents/docker/httpd/compose.yml -f /home/webdev/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1688371265346.yml -f /home/webdev/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1688371347340.yml up -d
[+] Building 0.0s (0/0)
[+] Running 2/2
✔ Network httpd_default Created 0.1s
✔ Container httpd-httpd-1 Started 0.5s
[93090 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=httpd --filter label=com.docker.compose.service=httpd
[93124 ms] Start: Run: docker inspect --type container e4677a7e37d5
[93148 ms] Start: Inspecting container
[93148 ms] Start: Run: docker inspect --type container e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0
[93181 ms] Start: Run in container: /bin/sh
[93187 ms] Start: Run in container: uname -m
[93317 ms] x86_64
[93317 ms]
[93317 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[93321 ms] PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[93321 ms]
[93322 ms] Start: Run in container: cat /etc/passwd
[93323 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[93327 ms]
[93327 ms]
[93327 ms] Exit code 1
[93328 ms] Start: Run in container: /bin/sh
[93332 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[93432 ms]
[93432 ms]
[93432 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[93439 ms]
[93439 ms]
[93439 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[93442 ms]
[93442 ms]
[93442 ms] Exit code 1
[93442 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[93447 ms]
[93447 ms]
[93447 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[93452 ms]
[93452 ms]
[93463 ms] Start: Run: docker inspect --type container e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0
[93526 ms] Start: Run: docker exec -i -u root e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=0632a7e5-e44a-4e67-a8de-8a7eb8fa84481688371254018 ; /bin/sh
[93531 ms] Start: Run: docker-compose version --short
[93536 ms] Start: Run: docker compose version --short
[93641 ms] New container started. Keep-alive process started.
[93698 ms] Start: Run: /snap/code/132/usr/share/code/code --ms-enable-electron-run-as-node /home/webdev/.vscode/extensions/ms-vscode-remote.remote-containers-0.295.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/webdev/Documents/docker/httpd --id-label devcontainer.local_folder=/home/webdev/Documents/docker/httpd --id-label devcontainer.config_file=/home/webdev/Documents/docker/httpd/.devcontainer.json --container-id e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0 --log-level debug --log-format json --config /home/webdev/Documents/docker/httpd/.devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[94035 ms] @devcontainers/cli 0.42.0. Node.js v16.17.1. linux 5.15.0-76-generic x64.
[94035 ms] Start: Run: docker inspect --type container e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0
[94090 ms] Start: Inspecting container
[94090 ms] Start: Run: docker inspect --type container e4677a7e37d57384ef976083b56655fc703ca1055462a5c2a71558bee2eba8a0
[94119 ms] Start: Run in container: /bin/sh
[94128 ms] Start: Run in container: uname -m
[94238 ms] x86_64
[94239 ms]
[94239 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[94245 ms] PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[94246 ms]
[94248 ms] Start: Run in container: cat /etc/passwd
[94251 ms] Start: Updating configuration state
[94278 ms] Start: Setup shutdown monitor
[94281 ms] Forking shutdown monitor: /home/webdev/.vscode/extensions/ms-vscode-remote.remote-containers-0.295.0/dist/shutdown/shutdownMonitorProcess /run/user/1000/vscode-remote-containers-d487caaa-21d7-46ea-87d7-7a7909c8a43d.sock dockerCompose Debug /home/webdev/.config/Code/logs/20230703T101217/window1/exthost/ms-vscode-remote.remote-containers 1688371255009
[94285 ms] Start: Run in container: test -d /home/foo/.vscode-server
[94286 ms]
[94286 ms]
[94286 ms] Exit code 1
[94287 ms] Start: Run in container: test -d /home/foo/.vscode-remote
[94289 ms]
[94289 ms]
[94289 ms] Exit code 1
[94289 ms] Start: Run in container: test ! -f '/home/foo/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/foo/.vscode-server/data/Machine' && { > '/home/foo/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[94294 ms]
[94295 ms]
[94295 ms] Start: Run in container: cat /home/foo/.vscode-server/data/Machine/settings.json
[94300 ms]
[94300 ms] cat: /home/foo/.vscode-server/data/Machine/settings.json: No such file or directory
[94301 ms] Exit code 1
[94301 ms] Start: Run in container: test -d /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06
[94311 ms]
[94311 ms]
[94311 ms] Exit code 1
[94311 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/695af097c7bd098fbf017ce3ac85e09bbc5dda06
[94314 ms]
[94314 ms]
[94314 ms] Start: Run in container: mkdir -p '/home/foo/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/695af097c7bd098fbf017ce3ac85e09bbc5dda06' '/home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06'
[94319 ms]
[94319 ms]
[94320 ms] Start: Run in container: /bin/sh
[94336 ms] Start: Launching Dev Containers helper.
[94337 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-0da0db22-18b8-4d5a-9902-ecfc0576b34a.sock) forwarded to local host (/run/user/1000/keyring/ssh).
[94338 ms] Start: Run in container: test -e /tmp/.X11-unix/X0
[94338 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/695af097c7bd098fbf017ce3ac85e09bbc5dda06'
[94345 ms]
[94345 ms]
[94345 ms] Exit code 1
[94345 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix'
[94347 ms]
[94348 ms]
[94348 ms] X11 forwarding: DISPLAY in container (:0) forwarded to local host (:0).
[94348 ms] Start: Run in container: gpgconf --list-dir agent-socket
[94350 ms] /home/foo/.gnupg/S.gpg-agent
[94351 ms]
[94351 ms] Start: Run in container: gpgconf --list-dir homedir
[94353 ms] /home/foo/.gnupg
[94353 ms]
[94353 ms] Start: Run in container: ls '/home/foo/.gnupg/private-keys-v1.d' 2>/dev/null
[94359 ms]
[94359 ms]
[94360 ms] Exit code 2
[94360 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[94398 ms] /run/user/1000/gnupg/S.gpg-agent.extra
[94399 ms]
[94399 ms] Start: Run in container: mkdir -p -m 700 '/home/foo/.gnupg'
[94399 ms] gpg-agent: Socket in container (/home/foo/.gnupg/S.gpg-agent) forwarded to local host (/run/user/1000/gnupg/S.gpg-agent.extra).
[94440 ms]
[94440 ms]
[94441 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[94441 ms] Start: Run: gpgconf --list-dir homedir
[94470 ms]
[94470 ms]
[94470 ms] Exit code 127
[94471 ms] Start: Run in container: /bin/sh
[94503 ms] userEnvProbe: loginInteractiveShell (default)
[94504 ms] Start: Run in container: test -f '/tmp/devcontainers-0632a7e5-e44a-4e67-a8de-8a7eb8fa84481688371254018/env-loginInteractiveShell.json'
[94504 ms] Start: Run in container: echo ~
[94506 ms]
[94506 ms]
[94507 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/node /tmp/vscode-remote-containers-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js git-credential-helper $*; }; f' || true
[94507 ms]
[94507 ms]
[94508 ms] Exit code 1
[94508 ms] userEnvProbe: not found in cache
[94508 ms] userEnvProbe shell: /bin/bash
[94509 ms] /home/webdev/.gnupg
[94509 ms]
[94509 ms] Start: Run in container: gpgconf --list-dir homedir
[94512 ms]
[94512 ms]
[94516 ms] /home/foo/.gnupg
[94517 ms]
[94517 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 "
[94635 ms] Start: Run in container: # Test for /home/foo/.gnupg/pubring.kbx and gpg
[94638 ms]
[94638 ms]
[94638 ms] Start: Run in container: cat '/home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/product.json'
[94642 ms] Start: Run in container: # Copy /home/webdev/.gnupg/pubring.kbx to /home/foo/.gnupg/pubring.kbx
[94646 ms]
[94646 ms]
[94646 ms] Start: Run in container: cat '/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06' 2>/dev/null || (umask 377 && echo '59482ae2-dfcf-4460-8496-a8becdcfecf1' >'/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06-c65b978d-08cf-440f-94e0-a8e496ed467e' && mv -n '/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06-c65b978d-08cf-440f-94e0-a8e496ed467e' '/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06' && rm -f '/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06-c65b978d-08cf-440f-94e0-a8e496ed467e' && cat '/home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06')
[94654 ms] 59482ae2-dfcf-4460-8496-a8becdcfecf1
[94654 ms]
[94654 ms] Start: Run in container: # Test for /home/foo/.gnupg/trustdb.gpg and gpg
[94655 ms] Start: Starting VS Code Server
[94655 ms] Start: Preparing Extensions
[94660 ms] /home/foo
[94661 ms]
[94661 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js' >/tmp/vscode-remote-containers-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js
[94661 ms]
[94661 ms]
[94662 ms] Start: Run in container: test ! -f '/home/foo/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/foo/.vscode-server/data/Machine' && { > '/home/foo/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[94664 ms]
[94664 ms]
[94665 ms] Start: Run in container: # Copy /home/webdev/.gnupg/trustdb.gpg to /home/foo/.gnupg/trustdb.gpg
[94672 ms] Extensions cache, install extensions: None
[94673 ms]
[94673 ms]
[94673 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js' >/tmp/vscode-remote-containers-server-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js_1688371349682
[94676 ms]
[94677 ms]
[94690 ms]
[94690 ms]
[94690 ms] Start: Run in container: test -d /home/foo/.vscode-server/extensionsCache && ls /home/foo/.vscode-server/extensionsCache || true
[94691 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[94704 ms]
[94704 ms]
[94705 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[94710 ms] dbaeumer.vscode-eslint-2.4.2
[94710 ms]
[94711 ms] Extensions cache, link in container: None
[94712 ms] Optimizing extensions for quality: stable
[94713 ms] Start: Run in container: /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/foo/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/foo/.vscode-server/data/Machine/.connection-token-695af097c7bd098fbf017ce3ac85e09bbc5dda06 --extensions-download-dir /home/foo/.vscode-server/extensionsCache --start-server --disable-websocket-compression
[94895 ms] *
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[94899 ms] Server bound to 127.0.0.1:43143 (IPv4)
Extension host agent listening on 43143
[94899 ms] Start: Run in container: echo 43143 >'/home/foo/.vscode-server/data/Machine/.devport-695af097c7bd098fbf017ce3ac85e09bbc5dda06'
[94901 ms]
[94901 ms]
[94902 ms] Port forwarding for container port 43143 starts listening on local port.
[94902 ms] Port forwarding local port 43143 to container port 43143
[94903 ms] Start: Run in container: # Test for /home/foo/.gitconfig and git
[94910 ms]
[94910 ms]
[94911 ms] Start: Run in container: # Copy /home/webdev/.gitconfig to /home/foo/.gitconfig
[94921 ms]
[94921 ms]
[94922 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/node /tmp/vscode-remote-containers-0da0db22-18b8-4d5a-9902-ecfc0576b34a.js git-credential-helper $*; }; f' || true
[94929 ms]
[94930 ms]
[94977 ms] userEnvProbe PATHs:
Probe: '/usr/local/apache2/bin:/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/foo/.local/bin'
Container: '/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[94977 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-0632a7e5-e44a-4e67-a8de-8a7eb8fa84481688371254018' && cat > '/tmp/devcontainers-0632a7e5-e44a-4e67-a8de-8a7eb8fa84481688371254018/env-loginInteractiveShell.json' << 'envJSON'
[95000 ms]
[95001 ms]
[95001 ms] Start: Run in container: umask 077 && XRD="/tmp/user/$(id -u)" && mkdir -p $XRD && echo $XRD
[95006 ms] /tmp/user/1000
[95006 ms]
[95006 ms] Start: Run in container: test -e /tmp/user/1000/vscode-wayland-9a56d2de-855f-43ef-ab9c-31754e4dca9f.sock || ln -sf /tmp/vscode-wayland-9a56d2de-855f-43ef-ab9c-31754e4dca9f.sock /tmp/user/1000/vscode-wayland-9a56d2de-855f-43ef-ab9c-31754e4dca9f.sock
[95010 ms]
[95010 ms]
[95138 ms] Port forwarding connection from 38592 > 43143 > 43143 in the container.
[95139 ms] Start: Run in container: /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/node -e
[95286 ms] [08:02:30]
[95332 ms] Port forwarding 38592 > 43143 > 43143 stderr: Connection established
[95339 ms] [08:02:30] Extension host agent started.
[95423 ms] [08:02:30] No uninstalled extensions found.
[95437 ms] [08:02:30] Started initializing default profile extensions in extensions installation folder. file:///home/foo/.vscode-server/extensions
[95440 ms] Port forwarding connection from 38616 > 43143 > 43143 in the container.
[95440 ms] Start: Run in container: /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/node -e
[95457 ms] [08:02:30] ComputeTargetPlatform: linux-x64
[95485 ms] [08:02:30] Completed initializing default profile extensions in extensions installation folder. file:///home/foo/.vscode-server/extensions
[95621 ms] [08:02:30] [127.0.0.1][5e005c57][ManagementConnection] New connection established.
[95631 ms] Port forwarding 38616 > 43143 > 43143 stderr: Connection established
[95685 ms] [08:02:30] Log level changed to info
[95853 ms] [08:02:30] [127.0.0.1][1b08e55e][ExtensionHostConnection] New connection established.
[95905 ms] [08:02:30] [127.0.0.1][1b08e55e][ExtensionHostConnection] <277> Launched Extension Host Process.
[111546 ms] Port forwarding connection from 41460 > 43143 > 43143 in the container.
[111551 ms] Start: Run in container: /home/foo/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06/node -e
[111799 ms] Port forwarding 41460 > 43143 > 43143 stderr: Connection established
答案1
得分: 0
我最终成功地让它工作了。以下是步骤(按顺序):
- 将common-utils:2留空
- 删除name
- 添加remoteUser
- 删除command
- 删除user
其余部分保持不变。
英文:
I finally managed to get it working. Here are the steps (in order):
1. Leave common-utils:2 empty
2. Remove name
3. Add remoteUser
4. Remove command
5. Remove user
Leave the rest as it is.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论