我是GCP中一个项目的所有者,目前在我的Container Registry中只有一个图像。我正在尝试删除它,但它表明我无权执行此操作。
知道为什么吗?
尝试使用gcloud
运行删除操作时,出现验证错误:
最佳答案
一个潜在的原因是您受到Container Registry上当前未解决问题的影响。通过控制台UI删除图像是不可能的。
请参阅以下来自GCP的消息:
Project owners and editors are currently unable to edit tags or delete images in the Container Registry UI. The workarounds are to either use the command line or grant the Storage Object Viewer IAM role. A fix is expected by December 5th.
在这种情况下,解决方法是使用
gcloud
命令行删除图像:gcloud container images delete gcr.io/...
在此请注意不要与
gcloud compute images
混淆,后者允许在Google Cloud Compute上管理VM镜像。
关于docker - 删除GCP上的图片-无法通过UI或gcloud cli使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59015327/