Tool to apply retention logic to docker images in a Docker Registry
9.7K
docker-registry-pruner is a rules-based tool that applies business logic to docker images in a Docker Registry storage system for retention.
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
See the configuration overview for how to write config files to apply retention rules to images in your Registry.
Check out docs/examples.md for examples using the CLI tool.
See docs/hacking.md for how to hack and contribute.
Copyright 2019, Tumblr, Inc.
Content type
Image
Digest
Size
7.3 MB
Last updated
about 7 years ago
docker pull tumblr/docker-registry-pruner