【问题标题】:Unable to create repository on IBM Cloud无法在 IBM Cloud 上创建存储库
【发布时间】:2021-03-13 06:18:24
【问题描述】:

我可以使用 ibmcloud cr login 成功登录

但是当我尝试在注册表中创建存储库时,出现以下错误:

docker push registry.eu-gb.bluemix.net/fdutreg/ksrepo
The push refers to repository [registry.eu-gb.bluemix.net/fdutreg/ksrepo]
428c97da766c: Preparing
unauthorized: The login credentials are not valid, or your IBM Cloud account is not active.

有什么想法吗?

【问题讨论】:

标签: ibm-cloud


【解决方案1】:

将 registry.eu-gb.bluemix.net 替换为 registry.eu-de.bluemix.net,现在可以了。

【讨论】:

    【解决方案2】:

    2 年后,但可能有人正在尝试同样的问题。问题是您没有向注册表进行身份验证。您可以使用 API 密钥进行身份验证:

    docker login -u iamapikey -p apikey registry_url

    对于 apikey 字段,您可以在 Manage > IAM > APIkeys > Create an IBM Cloud API key in ibm.cloud.com 中创建一个 apikey

    重要的是要知道通过 CLI 使用 --password 是不安全的。使用 --password-stdin。你可以在https://cloud.ibm.com/docs/Registry?topic=Registry-registry_access找到替代品

    【讨论】:

      猜你喜欢
      • 2021-06-27
      • 2022-06-23
      • 2015-12-27
      • 1970-01-01
      • 2022-07-28
      • 2018-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多