docker - 删除GCP上的图片-无法通过UI或gcloud cli使用

标签 docker google-cloud-platform containers google-container-registry

我是GCP中一个项目的所有者,目前在我的Container Registry中只有一个图像。我正在尝试删除它,但它表明我无权执行此操作。
enter image description here

知道为什么吗?

尝试使用gcloud运行删除操作时,出现验证错误:

enter image description here

最佳答案

一个潜在的原因是您受到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.



enter image description here

在这种情况下,解决方法是使用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/

相关文章:

shell - 未从入口点脚本正确获取 Env 文件

apache - GCP HTTP(S) 负载平衡器会将 HTTP/1.1 header 名称转换为小写,我的代码会受到影响吗?

amazon-web-services - "no basic auth credentials"尝试从私有(private) ECR 中提取图像时

python - Visual Studio Code - 如何在 Docker 容器中远程调试 python 代码

r - 将所有内核与 Microsoft R Open 和 Google Compute Engine 结合使用

docker - Docker 主机与容器中的 Ulimits

docker - 如何使用IBM LSF运行Docker容器

c++ - 使用算法中的插入函数在空容器中插入元素未给出预期结果

docker - 使用heroku.yml构建docker期间发生奇怪的错误

linux -/var/log/daemon.log 占用的空间多了怎么减少呢?