toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading

0

【以下的问题经过翻译处理】 在使用CodeBuild 构建docker镜像时,我遇到了“toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:”的错误。这仅出现在Node应用程序。

profile picture
EXPERT
asked 5 months ago62 views
1 Answer
0

【以下的回答经过翻译处理】 这个错误来自DockerHub。您可以在此帮助页面上了解有关DockerHub速率限制的更多信息。

您可以实现几个选项:

  • 在从DockerHub拉取镜像之前使用您的DockerHub帐户并调用docker login,这将增加拉取速率限制;
  • 如果您已经使用您的DockerHub帐户但仍然出现错误,您可以升级您的帐户到专业版以进一步增加速率限制;
  • 您可以在CodeBuild中实现构建缓存,以便本地缓存容器镜像层,这将减少从DockerHub拉取镜像的数量。
profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions

Relevant content