{
  "id": "policy/github-container-registry-pull-limit-exceeded",
  "signature": "Error: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating.",
  "signature_zh": "错误：请求过多：您已达到拉取速率限制。您可以通过身份验证来提高限制。",
  "regex": "toomanyrequests:.*pull rate limit",
  "domain": "policy",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "GitHub Container Registry enforces anonymous pull rate limits; unauthenticated requests hit the limit quickly.",
  "root_cause_type": "generic",
  "root_cause_zh": "GitHub容器注册表对匿名拉取实行速率限制；未经身份验证的请求会快速达到限制。",
  "versions": [
    {
      "version": "GitHub Container Registry (2024-01)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The limit resets slowly (typically 1-6 hours); waiting may not be practical for CI/CD pipelines.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is specific to GitHub Container Registry; switching registries requires configuration changes and may break dependencies.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "GitHub does not allow users to increase the limit; authentication is the only mitigation.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Authenticate to GitHub Container Registry: `echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin` then retry the pull.",
      "success_rate": 0.9,
      "how": "Authenticate to GitHub Container Registry: `echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin` then retry the pull.",
      "condition": "",
      "sources": []
    },
    {
      "action": "In CI/CD, set the GITHUB_TOKEN environment variable and use `docker login ghcr.io -u $GITHUB_ACTOR -p $GITHUB_TOKEN` before pulling images.",
      "success_rate": 0.92,
      "how": "In CI/CD, set the GITHUB_TOKEN environment variable and use `docker login ghcr.io -u $GITHUB_ACTOR -p $GITHUB_TOKEN` before pulling images.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Authenticate to GitHub Container Registry: `echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin` then retry the pull.",
    "In CI/CD, set the GITHUB_TOKEN environment variable and use `docker login ghcr.io -u $GITHUB_ACTOR -p $GITHUB_TOKEN` before pulling images."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry",
  "official_doc_section": null,
  "error_code": "toomanyrequests",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}