Google云平台容器列表标签权限拒绝

发布于 2025-02-09 11:42:45 字数 226 浏览 2 评论 0原文

执行命令时:

gcloud container images list-tags gcr.io/x/x

在终端中,我会收到以下错误:

(gcloud.container.images.list-tags)访问被拒绝:gcr.io/x/x

我需要哪个角色给用户,以便他们能够执行该命令?谢谢。

When executing the command:

gcloud container images list-tags gcr.io/x/x

In the terminal, I get the following error:

(gcloud.container.images.list-tags) Access denied: gcr.io/x/x

Which role do I need to give the user so that they are able to execute that command? Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月野兔 2025-02-16 11:42:45

出于仅阅读目的(例如list-tags),角色/storage.ObjectViewer应该(!?)就足够了。

Google容器注册表(GCR)有点令人困惑,因为:

  1. API为 docker registry api api
  2. 背景存储是Google Cloud Storage(GCS)。

由于

  1. 没有专门针对GCR的Google IAM角色,因为没有Google特定的API,
  2. 使用的IAM角色适用于GCS。

For read-only purposes (e.g. list-tags), roles/storage.objectViewer should (!?) be sufficient.

Google Container Registry (GCR) is slightly confusing because:

  1. the API is Docker Registry API
  2. the backing storage is Google Cloud Storage (GCS).

As a result of:

  1. there's no Google IAM roles specifically for GCR because there's no Google-specific API
  2. the IAM role that's used is applicable to GCS.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文