Skip to content
Tool to apply retention logic to docker images in a Docker Registry
Go Makefile Ruby Shell Dockerfile
Branch: master
Clone or download
Latest commit 2a740f6 Jul 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci-cd
cmd add label-based selector support Jul 10, 2019
config/examples cleanup Jul 3, 2019
docs updating hacking for CLA Jul 19, 2019
internal/pkg remove commented out tests, as they live in yaml configs now Jul 10, 2019
pkg add label-based selector support Jul 10, 2019
test/fixtures add label-based selector support Jul 10, 2019
.dockerignore initial commit from internal VCS Jun 11, 2019
.gitignore initial commit from internal VCS Jun 11, 2019
.travis.yml adding travis config (#2) Jul 18, 2019
Dockerfile add label-based selector support Jul 10, 2019
LICENSE.txt initial commit from internal VCS Jun 11, 2019
Makefile add label-based selector support Jul 10, 2019
README.md add link to docker image Jul 18, 2019
entrypoint.sh initial commit from internal VCS Jun 11, 2019
go.mod add label-based selector support Jul 10, 2019
go.sum initial commit from internal VCS Jun 11, 2019

README.md

docker-registry-pruner 🐳✂️

docker-registry-pruner is a rules-based tool that applies business logic to docker images in a Docker Registry storage system for retention.

GitHub release Build Status Docker Image Docker Automated build Docker Build Status MicroBadger Size Docker Pulls Docker Stars Godoc

Documentation

Quickstart

See configuration overview for how to write a config file. Then, map it into your container and run the report!

$ docker run -ti -v $(pwd)/config:/app/config --rm tumblr/docker-registry-pruner --mode report --config ./config/myconfig.yaml

Once you are happy with the report, you can perform pruning! WARNING: this is destructive!

$ docker run -ti -v $(pwd)/config:/app/config --rm tumblr/docker-registry-pruner --mode prune --config ./config/myconfig.yaml

Configuration

See the configuration overview for how to write config files to apply retention rules to images in your Registry.

Examples

Check out docs/examples.md for examples using the CLI tool.

Hacking

See docs/hacking.md for how to hack and contribute.

License

Apache 2.0

Copyright 2019, Tumblr, Inc.

You can’t perform that action at this time.