简体   繁体   English

谷歌云平台容器列表标签权限被拒绝

[英]Google Cloud Platform container list tags permission denied

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 (gcloud.container.images.list-tags)访问被拒绝:gcr.io/x/x

Which role do I need to give the user so that they are able to execute that command?我需要赋予用户哪个角色,以便他们能够执行该命令? Thank you.谢谢你。

For read-only purposes (eg list-tags ), roles/storage.objectViewer should (!?) be sufficient.对于只读目的(例如list-tags ), roles/storage.objectViewer应该(!?)就足够了。

Google Container Registry (GCR) is slightly confusing because: Google Container Registry (GCR) 有点令人困惑,因为:

  1. the API is Docker Registry API API 是Docker Registry API
  2. the backing storage is Google Cloud Storage (GCS).后备存储是 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没有专门针对 GCR 的 Google IAM 角色,因为没有 Google 特定的 API
  2. the IAM role that's used is applicable to GCS.使用的 IAM 角色适用于 GCS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谷歌云平台:使用gpu监控时权限被拒绝 - Google cloud platform: permission denied when using gpu monitoring Google云端平台:通过访问Apps脚本拒绝权限 - Google Cloud Platform: permission denied by accessing Apps Script 谷歌云平台:SSH 到谷歌云实例将有“权限被拒绝(公钥)” - Google Cloud Platform: SSH to Google cloud instance will have "Permission denied (publickey)" 权限被拒绝的 Google Cloud 文件夹 - Google Cloud Folders with Permission Denied 谷歌云 scp 权限被拒绝 - Google cloud scp permission denied Permission_Denied [谷歌云平台]:此API方法需要启用计费 - Permission_Denied [google cloud platform]: This API method requires billing to be enabled 尝试在 Google 云平台中使用 Pandas 读取 csv 文件时权限被拒绝 - Permission denied when trying to read a csv file using pandas in Google cloud platform 权限被拒绝(公钥)。 -我无法在Google Cloud Platform上登录我的VM - Permission denied (publickey). - I can't login to my VM on Google Cloud Platform 从Google Cloud Container Registry中提取Docker映像时权限被拒绝 - Permission denied when pulling Docker image from Google Cloud Container Registry 在 Google Cloud Platform 中重命名组织的权限 - Permission to rename organization in Google Cloud Platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM