7

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)

Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168

1 Answers1

4

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

Sandeep Dinesh
  • 2,035
  • 19
  • 19
  • Ok there seems to be a problem with the saved images. After deleting all my images from the registry, the storage (artefacts -> containers -> images) is still full of dozens of image folders. – Gabriel Petrovay Nov 12 '15 at 17:27
  • Yes, these are the Docker layers that are stored. How did you delete your images? You should delete these as well. – Sandeep Dinesh Nov 12 '15 at 17:50
  • 1
    Is there a place we can request for this to be added? I'd rather not store some of my images indefinitely and I definitely don't want to wipe out my entire bucket – anztenney Nov 12 '15 at 21:08
  • @anztenney I'm looking into it! – Sandeep Dinesh Nov 13 '15 at 19:27
  • @SandeepDinesh The only way I see that I can delete the images is by visiting each one and removing all the tags. The warning tells me (indirectly) that the images would not be accessible anymore without any tag. I also want to delete them but I see now way how to do it in another clean way. – Gabriel Petrovay Nov 16 '15 at 11:15