{
  "id": "docker/tls-handshake-timeout",
  "signature": "Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout",
  "signature_zh": "守护进程响应错误：Get https://registry-1.docker.io/v2/：net/http：TLS 握手超时",
  "regex": "TLS handshake timeout.*registry-1\\.docker\\.io",
  "domain": "docker",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The Docker daemon cannot establish a TLS connection to the Docker Hub registry due to network latency, firewall blocks, or DNS resolution issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "Docker 守护进程无法与 Docker Hub 注册表建立 TLS 连接，原因是网络延迟、防火墙阻止或 DNS 解析问题。",
  "versions": [
    {
      "version": "Docker 20.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 24.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 25.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker CE 26.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting HTTP_PROXY without HTTPS_PROXY in daemon.json does not affect TLS connections; the timeout persists.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Flushing DNS cache (e.g., 'sudo systemctl restart systemd-resolved') rarely resolves the issue if the root cause is network congestion or firewall rules.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Configure Docker daemon to use a mirror registry by editing /etc/docker/daemon.json: add '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}' and restart Docker. Then pull the image again.",
      "success_rate": 0.8,
      "how": "Configure Docker daemon to use a mirror registry by editing /etc/docker/daemon.json: add '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}' and restart Docker. Then pull the image again.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase TLS handshake timeout by setting environment variable: 'export DOCKER_CLIENT_TIMEOUT=120' and 'export COMPOSE_HTTP_TIMEOUT=120' before running docker commands.",
      "success_rate": 0.6,
      "how": "Increase TLS handshake timeout by setting environment variable: 'export DOCKER_CLIENT_TIMEOUT=120' and 'export COMPOSE_HTTP_TIMEOUT=120' before running docker commands.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check and update DNS settings: add '8.8.8.8' to /etc/resolv.conf or use systemd-resolved: 'sudo resolvectl dns docker0 8.8.8.8'.",
      "success_rate": 0.7,
      "how": "Check and update DNS settings: add '8.8.8.8' to /etc/resolv.conf or use systemd-resolved: 'sudo resolvectl dns docker0 8.8.8.8'.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Configure Docker daemon to use a mirror registry by editing /etc/docker/daemon.json: add '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}' and restart Docker. Then pull the image again.",
    "Increase TLS handshake timeout by setting environment variable: 'export DOCKER_CLIENT_TIMEOUT=120' and 'export COMPOSE_HTTP_TIMEOUT=120' before running docker commands.",
    "Check and update DNS settings: add '8.8.8.8' to /etc/resolv.conf or use systemd-resolved: 'sudo resolvectl dns docker0 8.8.8.8'."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/engine/reference/commandline/pull/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2023-09-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}