Skip to content

Instantly share code, notes, and snippets.

@epcim
Last active August 22, 2024 08:15
Show Gist options
  • Save epcim/dded1df6176ef162b693bffd08cc5ba3 to your computer and use it in GitHub Desktop.
Save epcim/dded1df6176ef162b693bffd08cc5ba3 to your computer and use it in GitHub Desktop.
gcr.io image statistics
for REPO in $(gcloud alpha container images list --repository=gcr.io/volterraio --sort-by="~TIMESTAMP"|grep -Ev '^NAME'); do \
gcloud container images list-tags $REPO --format="table[no-heading](DIGEST,TIMESTAMP)"|\
grep 2024-08 | xargs -I% echo $(basename $REPO) %; done |\
clipivot count --rows=0 --val=3 |sort -g -t, -k2 -r |head -n 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment