Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

[BUG] vscode-server does not start if IPv6 is not available

已關閉
#218 9 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
65/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
docker
領域
devops

研究方向

先在停用 IPv6 的主機上使用提供的 Docker 服務設定重現失敗,然後追蹤嘗試繫結至 :::8443 的 code-server 容器啟動路徑。最新的 code-server 映像能在不使用 IPv6 的情況下成功啟動,同時保留預期的存取行為,即表示完成;使用容器記錄和相同的重現步驟進行驗證。

由索引模型根據 Issue 內容生成。

描述

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

The container fails to start on a host where IPv6 has been disabled.

Expected Behavior

The container should start.

Steps To Reproduce
  1. Disable IPv6 on the Docker host
  2. Start the container with the latest code-server image
  3. The container fails to start due to being unable to bind to ":::8443"
Environment
- OS: Debian 11
- How docker service was installed: Official Debian package
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
[2026-07-04T15:39:49.962Z] info  code-server 4.127.0 1e6ed874e3138141a5636f6e0dbe8570aa6cd001
[2026-07-04T15:39:49.963Z] info  Using user-data-dir /config/data
[2026-07-04T15:39:49.977Z] error listen EAFNOSUPPORT: address family not supported :::8443
主要語言
Dockerfile
星號
2k
分支
366
平均合併
1 天 20 小時
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

linuxserver/docker-code-server 的其他 Issue

查看 linuxserver/docker-code-server 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。