Repository navigation
[BUG] vscode-server does not start if IPv6 is not available #218
Description
Activity
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Same issue here
I guess the merge from commit 84a119f is causing this.
At least give us env var for listening addr config. For now it wont start without ipv6 support, its broken.
Any fix for this issue? It has been a while....
There is a pull request to fix that (#219) but it hasn't been merged yet.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Is this image abandoned? Will this issue get fix? Please "_"
Fear no more for I have found an easy workaround to bring back VSCODE-SERVER from the dead without IPV6. If you have any trouble with it, let me know.
Run LinuxServer code-server Without IPv6
1. Create the Dockerfile
cat > Dockerfile <<'EOF'
FROM lscr.io/linuxserver/code-server:latest
RUN sed -i 's#\[::\]:8443#0.0.0.0:8443#g' \
/etc/s6-overlay/s6-rc.d/svc-code-server/run
EOF2. Build the derived image
docker build --no-cache --pull -t code-server-no-ipv6:latest .3. Edit your Docker Compose file to use new image
image: code-server-no-ipv6:latest #lscr.io/linuxserver/code-server:latest*A successful startup should include:
Connection to 127.0.0.1 8443 port [tcp/*] succeeded!
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Is there an existing issue for this?
Current Behavior
The container fails to start on a host where IPv6 has been disabled.
Expected Behavior
The container should start.
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
services: code-server: image: linuxserver/code-server:4.127.0 container_name: code-server hostname: code-server restart: unless-stopped volumes: - code-server:/config - code-server-data:/data environment: TZ: Europe/Berlin HASHED_PASSWORD: '<redacted>' DEFAULT_WORKSPACE: /data labels: traefik.enable: true traefik.http.routers.code-server.rule: "Host(`code-server.example.com`)"Container logs