Skip to main content

Clean old versions of Docker images.

Project description

pipeline status

Clean old versions of Docker images.

Explanation

Remove old versions of images with same name. In cases where you updated an image (from example from postgres:13 to postgres:14) the old image is present. Using docker image prune won’t help in this case since the image is still properly tagged.

Usage

usage: deepclean [-h] [-i INCLUDE] [-e EXCLUDE] [-v] [-V] [-d]

Clean old versions of Docker images.

options:
  -h, --help            show this help message and exit
  -i INCLUDE, --include INCLUDE
                        Regular expression of images to exclusively prune.
  -e EXCLUDE, --exclude EXCLUDE
                        Regular expression of images to ignore.
  -v, --verbose         Verbose output
  -V, --version         show program's version number and exit
  -d, --dry-run         Dry-run, don't delete

Regular Docker environment variables (like DOCKER_HOST) can be used.-i and -e can be used multiple times.

License

This software is licensed under the MIT license (see the LICENSE.txt file).

Author

Nimrod Adar, contact me or visit my website. Patches are welcome via git send-email. The repository is located at: https://git.shore.co.il/nimrod/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepclean-0.1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

deepclean-0.1.2-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page