为什么在使用 Container Registry时无法推送或拉取 Docker 映像?
使用 IBM Cloud® Container Registry时,推送或拉取 Docker 映像失败。 您可能会收到各种消息,例如,有关超出配额或凭证无效的消息。
运行命令来推送或拉出 Docker 映像时,收到错误消息。 错误消息会依据根本原因而变化。 以下错误消息是您可能收到的潜在错误消息:
- 方案 A
unauthorized: authentication required
- 方案 B
denied: You are not authorized to access the specified resource.
- 方案 C。
unauthorized: An error occurred when authenticating your request with IBM Cloud. Clear your browser cookies, log in to IBM Cloud, and try your request again.
- 场景 D.
Your account has exceeded its pull traffic quota for the current month.
,请参阅 为什么我迂到有关配额的错误? 以获取帮助。 - 场景 E.
Your account has exceeded its image storage quota for the current month.
,请参阅 为什么我收到有关配额的错误? 以获取帮助。
下列替代方法是可能的原因:
对于场景 A,B 和 C,以下替代方法是可能的原因:
- Docker 未安装。
- Docker 客户机未登录到 IBM Cloud Container Registry。
- IBM Cloud 访问令牌消费者代表用户访问受保护资源时使用的值,而不是使用用户的服务提供商凭据。 已到期。
可以通过以下方式来解决此问题:
对于方案 A,B 和 C,请完成以下任务:
- 确保已在计算机上安装 Docker。
- 检查 Docker 安装路径。
- 通过运行
ibmcloud login
登录到 IBM Cloud。 然后,通过运行ibmcloud cr login
登录到 IBM Cloud Container Registry CLI。