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