如何从 Google Container Registry 中找出我的容器映像使用了多少空间 [英] How can I find out how much space is used by my container images from the Google Container Registry

查看:16
本文介绍了如何从 Google Container Registry 中找出我的容器映像使用了多少空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用 gcloud docker push 将容器映像推送到 Google Container Registry.两个问题:

I have pushed container images using gcloud docker push to the Google Container Registry. Two questions:

如何查看我的所有图片使用了多少空间?(我可以看到单个图像,但我想要一个总数,以免导航到所有图像并求和)

How do I see how much space all my images use? (I can see individual images but I want a total in order not to navigate to all and make a sum)

推荐答案

好问题!

您的所有 Docker 映像都存储在名为 artifacts 的 Google Cloud Storage 存储桶中.<PROJECT-ID>.appspot.com(将 <PROJECT-ID> 替换为您的项目 ID)

All your Docker images are stored in a Google Cloud Storage bucket called artifacts.<PROJECT-ID>.appspot.com (Replace <PROJECT-ID> with your project's ID)

要查找总空间,请运行 gsutil du gs://artifacts.<PROJECT-ID>.appspot.com

To find the total space, run gsutil du gs://artifacts.<PROJECT-ID>.appspot.com

这篇关于如何从 Google Container Registry 中找出我的容器映像使用了多少空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆