Sign inSign up

fleuri/container-retention

By fleuri

•Updated over 7 years ago

Container Retention - a handy tool to keep your Google Cloud Container registry from bloating

Image
1

10K+

fleuri/container-retention repository overview

Container Retention - a handy tool to keep your Google Cloud Container registry from bloating

Motivation: GCP Container Registry is a nifty Docker Registry implementation built on top of Google Cloud Storage. While Cloud Storage allows user to set different retention policies for files, currently Container registry does not.

If you are doing automated deployments with Docker Registry with every code commit creating a new docker image to be deployed, you may end up with hundreds of gigabytes worth of docker images of which only a fraction is actually in use any given time. This

Container Retention is a script intended to run as a cronjob in Kubernetes. It preserves a set number of newest container images and deletes the older ones not within the preservation range.

CHECK OUT THE PROJECT AT https://bitbucket.org/Fleuri/containerretention/src/master/⁠

Tag summary

Content type

Image

Digest

Size

80 MB

Last updated

over 7 years ago

docker pull fleuri/container-retention