Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out how much space is used by my container images from the 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)

like image 387
4 revs, 2 users 76% Avatar asked Nov 12 '15 12:11

4 revs, 2 users 76%


People also ask

How do I know what size my container image is?

To view the approximate size of a running container, you can use the command docker container ls -s . Running docker image ls shows the sizes of your images. To see the size of the intermediate images that make up your image use docker image history my_image:my_tag .

How do you calculate GCR?

Use https://console.cloud.google.com/gcr/images/google-containers/GLOBAL to search. Show activity on this post. I submitted a PR into 1.8. 0 that will authenticate searches, and work similarly for private repositories.

How many images can a container run?

When you run a containerized environment, you essentially create a read-write copy of that filesystem (docker image) inside the container. This adds a container layer which allows modifications of the entire copy of the image. You can create an unlimited number of Docker images from one image base.


1 Answers

Good questions!

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)

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

like image 70
Sandeep Dinesh Avatar answered Oct 05 '22 21:10

Sandeep Dinesh