Docker registry cleanup on rules you choose, with a preview first and an undo

Early access · Being built

We're building Docker cleanup for hosted Docker repositories so old tags will be removed on rules you choose, with a preview first and an Undo. The Cleanup tab's preview is live today, in early access: you choose what to keep and see which tags a run would remove, with nothing deleted.

Every request helps us decide what to build next.

Serving developers since 2016 Founder-run, no venture capital

What we're building
Rules you choose on the Cleanup tab
Cleanup will remove old tags from a hosted Docker repository using rules you choose on its Cleanup tab: keeping the newest N tags of each image, keeping tags pushed in the last N days, keeping tags pulled in the last N days from 1 to 90, and always keeping tags matching your patterns, like v* or *-rc. A tag will be removed only when no rule keeps it, and leaving a rule empty will turn it off.
Pull history first
The pulled-in-the-last-N-days rule will start removing only once CloudRepo has a full N days of pull history for the repository. Until then, it will keep every tag, and the preview will say when it can start.
Preview first, then a daily run
Every change that would remove a tag will start with a preview listing each tag the rules would remove. When cleanup is turned on, it will remove only tags that were in that preview, and a tag pushed again since the preview will stay. After that, cleanup will run once a day with the same rules until it is turned off.
28-day Undo
Each cleanup run will be undoable for 28 days. Undo will restore every tag that run removed and turn cleanup off for the repository so the next daily run will not remove them again. If someone pushed a tag again since, the newer image will stay.
Immutable tags and cosign signatures will always be kept.
Audit Log
Turning cleanup on, turning it off and asking for an Undo will each get a row in your organization's Audit Log with the member who did it, and each tag removed or put back will get its own row.

The problem today

A busy CI pipeline pushes a new tag on build after build, and a registry that keeps every tag piles up fast. Soon nobody on the team is sure which tags are still pulled and which ones were used once and forgotten.

Deleting an image from a registry by hand turns into guesswork. One wrong removal breaks something that still depends on that tag, so teams put Docker registry cleanup off and live with the pileup instead.

How the tools you know handle it

On the open-source registry from CNCF Distribution (the registry image), Docker registry garbage collection is stop-the-world garbage collection, and CNCF Distribution's documentation notes that you should ensure the registry is in read-only mode or not running at all. On JFrog Artifactory, JFrog's documentation states that package cleanup policies are supported on the SaaS (7.98.2) and Self-Hosted (7.98.7) platforms with an Enterprise+ or Enterprise X (7.139.1 SaaS, 7.146.7 SH) subscription.

Why it will be better

  • You will see the list before anything goes Starting every change that would remove a tag with a preview, and removing only previewed tags, will let your team check the exact list before turning cleanup on.
  • One Undo will put a run back Within 28 days, one Undo will restore every tag a run removed and turn cleanup off for the repository so the next daily run will not remove them again.
  • Every step will be in your Audit Log Your Audit Log shows sign-ins, token changes and changes to the MFA requirement, newest first, to the organization's owner and admins. When cleanup ships, cleanup actions and tag changes will go into that same log.

Immutable tags and cosign signatures will always be kept.

Live today

Live today, in early access, a hosted Docker repository's Cleanup tab previews a cleanup: you choose what to keep, see image by image how many tags would go, and see each tag a run would remove, with nothing deleted. That preview runs in our fully managed private Docker registry, hosted beside your Maven, npm and Python packages with nothing to host, patch or upgrade, where you push and pull with the Docker CLI after a docker login with a repository token. Immutable Tags is also live today, off until you turn it on one repository at a time.

Request access to Docker cleanupThanks. We have your Docker cleanup request.

Request access for Docker cleanup, or see what else we're building on the CloudRepo roadmap.

Rather talk first? Book 15 minutes with Chris, our founder

Request access by email

Send Chris a note and say what you'd use it for. The subject line is filled in for you.

Email Chris about Docker cleanup

No mail app? Write to chris@cloudrepo.io with the subject "Early access: Docker cleanup".