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)
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 .
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With