429 policy network_error ai_generated true

来自守护进程的错误响应:toomanyrequests:您已达到拉取速率限制。您可以通过身份验证和升级来提高限制:https://www.docker.com/increase-rate-limits

Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limits

ID: policy/docker-hub-pull-rate-limit-exceeded-anonymous

其他格式: JSON · Markdown 中文 · English
90%修复率
90%置信度
1证据数
2023-09-01首次发现

版本兼容性

版本状态引入弃用备注
Docker Engine v20.10+ active
Docker Hub rate limits (Nov 2020) active

根因分析

Docker Hub 对匿名用户(每 6 小时 100 次拉取)和经过身份验证的免费用户(每 6 小时 200 次拉取)实施速率限制;CI/CD 管道或开发机器超出了此限制。

English

Docker Hub enforces rate limits on anonymous users (100 pulls per 6 hours) and authenticated free users (200 pulls per 6 hours); the CI/CD pipeline or developer machine exceeded this limit.

generic

官方文档

https://docs.docker.com/docker-hub/download-rate-limit/

解决方案

  1. 使用 docker login 登录 Docker Hub,将免费账户的限制提高到每 6 小时 200 次拉取。
  2. 使用 Docker Hub 付费订阅(Pro/Team)获得无限拉取,或将镜像镜像到私有仓库(如 Amazon ECR 或 GitHub Container Registry)。

无效尝试

常见但无效的做法:

  1. 40% 失败

    Works but is impractical for CI/CD pipelines that need immediate builds; also, the limit resets based on a rolling window, not a fixed time.

  2. 80% 失败

    The rate limit applies per image pull, not per tag; changing tags does not bypass the limit.