Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untagging unused images at end of build jobs #58

Open
nottrobin opened this issue Mar 9, 2018 · 3 comments
Open

Untagging unused images at end of build jobs #58

nottrobin opened this issue Mar 9, 2018 · 3 comments

Comments

@nottrobin
Copy link
Contributor

To help keep the docker registry from running out of space, we should untag images that aren't needed by Kubernetes at the end, so they can be cleaned up.

@tbille
Copy link
Contributor

tbille commented Mar 5, 2019

This is done by renaming the tag with latest

@tbille tbille closed this as completed Mar 5, 2019
@nottrobin nottrobin changed the title Untagging unused images at and of build jobs Untagging unused images at end of build jobs Mar 15, 2019
@nottrobin
Copy link
Contributor Author

I disagree.

We tag all our images with an ID, which is usually of the form {epoch_time_stamp}-{short_commit_id} - e.g. 1552351138-cc7170c. This tag name is then the tag name used inside Kubernetes to download the image.

We then also tag these images with latest, just for our own benefit so we can see what the latest image is, but this tag isn't actually used by Kubernetes.

We do nothing to remove previous ID-tags, so these will hang around forever.

The Docker CLI doesn't provide a way to delete image tags on the actual registry. It may be possible through the registry API, but I remember this not working properly last time I tried it...

@sowasred2012
Copy link

@nottrobin @frankban is this still relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants