Search code examples
dockercontainersgcloudgoogle-container-registry

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)


Solution

  • 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