{
  "id": "docker/registry-unauthorized-401",
  "signature": "Error response from daemon: unauthorized: incorrect username or password",
  "signature_zh": "守护进程错误响应：未授权：用户名或密码不正确",
  "regex": "unauthorized: incorrect username or password",
  "domain": "docker",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "Docker credentials for a private registry are invalid, expired, or not provided, causing authentication to fail during push/pull.",
  "root_cause_type": "generic",
  "root_cause_zh": "Docker 私有仓库的凭据无效、过期或未提供，导致推送/拉取时身份验证失败。",
  "versions": [
    {
      "version": "Docker 24.0.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 25.0.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker Hub",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "docker logout && docker login",
      "why_fails": "Logging out and logging in again with same credentials does not fix incorrect password.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "sudo docker login",
      "why_fails": "Using sudo docker login changes the context but not the credential validity.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "rm ~/.docker/config.json",
      "why_fails": "Deleting ~/.docker/config.json removes all credentials, but re-login with wrong password still fails.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Re-authenticate with correct credentials: docker login registry.example.com -u username -p new_password",
      "success_rate": 0.95,
      "how": "Re-authenticate with correct credentials: docker login registry.example.com -u username -p new_password",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using access tokens (e.g., GitHub Container Registry), generate a new token and use it: docker login ghcr.io -u username --password-stdin < token.txt",
      "success_rate": 0.9,
      "how": "If using access tokens (e.g., GitHub Container Registry), generate a new token and use it: docker login ghcr.io -u username --password-stdin < token.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check credential store: cat ~/.docker/config.json and verify credsStore or auths. If using credential helper, ensure it's configured correctly.",
      "success_rate": 0.8,
      "how": "Check credential store: cat ~/.docker/config.json and verify credsStore or auths. If using credential helper, ensure it's configured correctly.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Re-authenticate with correct credentials: docker login registry.example.com -u username -p new_password",
    "If using access tokens (e.g., GitHub Container Registry), generate a new token and use it: docker login ghcr.io -u username --password-stdin < token.txt",
    "Check credential store: cat ~/.docker/config.json and verify credsStore or auths. If using credential helper, ensure it's configured correctly."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/engine/reference/commandline/login/",
  "official_doc_section": null,
  "error_code": "401",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-02-28",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}