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
ESPERTO
posta 5 mesi fa62 visualizzazioni
1 Risposta
0

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

您可以实现几个选项:

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

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande