Skip to main content

This utility is designed for cleaning up docker resources.

Project description

language license

docker-cleaner

Description

This utility is designed for cleaning up docker resources.

Installation

python setup.py install

or

pip install -e .

or

pip install docker-cleaner

How to use

Run docker-cleaner -t 120 -o 120 -f image --images-include foo-image bar-image -l docker-cleanr.log

Also checkout list of arguments

arguments

  • -f, --force - Force removing of resources. Choose from: image, volume, all
  • -v, --client-version - Version of docker client to use
  • -o, --older - Clear resources that older amount of time (in minutes)
  • --images-include - Filter images that only contains any of that names
  • --volumes-include - Filter volumes that only contains any of that name
  • --images-exclude - Exclude images that contains any of that names
  • --volumes-exclude - Exclude volumes that contains any of that name
  • -t, --timeout - Timeout of cleaning. Live it empty in case of using cron job.
  • -l, --log - Redirect logging to file

Project details


Download files

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

Files for docker-cleaner, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size docker-cleaner-1.0.1.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page