Utility for cleaning up docker images.
3.1K
A utility to make it easier to delete Docker images based on image name and age.
Make sure you have Docker installed, then
$ make
Run as
$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
docker-cleanup
$ docker run -i --rm -v /var/run/docker.sock:/var/run/docker.sock docker-cleanup --help
Usage: docker-cleanup [options]
Clean up docker images
Options:
-h, --help Show command line help
--older-than AGE Delete images older than the given ActiveSupport-style duration (e.g. 2.weeks, 4.days)
--match REGEXP Only images with names matching the given Ruby regexp will be deleted
--dry-run Show which images would get cleaned up
--log-level LEVEL Set the logging level
(debug|info|warn|error|fatal)
(Default: info)
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Content type
Image
Digest
Size
265.1 MB
Last updated
over 10 years ago
docker pull conjurinc/docker-cleanup