0

尝试使用 Notary 客户端在我的 IBM Container Registry 中获取签名图像的摘要时出现以下错误。谁能建议如何解决它?

# notary -s https://us.icr.io:4443 lookup us.icr.io/securek8s/hello-world latest

* fatal: unauthorized: The login credentials are not valid, or your IBM Cloud account is not active.

顺便说一句,我从https://github.com/theupdateframework/notary构建了 Notary 客户端

4

1 回答 1

0

Notary 使用 Docker 登录缓存中的凭据。您收到的错误消息表明您的登录us.icr.io无效。这通常意味着您的凭据已过期。

如果您安装了ibmcloudCLI 和container-registry插件,则可以通过确保您的目标是美国南部注册表 ( ibmcloud cr region-set us.icr.io) 然后使用ibmcloud cr login.

如果没有安装 CLI 插件,可以直接使用 Docker 命令登录。有关更多信息,请参阅IBM Cloud 文档中的自动访问 IBM Cloud Container Registry

于 2021-06-28T10:16:27.890 回答