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.

Source Distribution

docker-cleaner-1.0.0.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file docker-cleaner-1.0.0.tar.gz.

File metadata

File hashes

Hashes for docker-cleaner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0921e513fa77ce2ac73f3f9d4e932ee825c11a4402d3ba5ea274101e6c6bea42
MD5 9a8f5ad9ef6676ef31e6ad73213e8f6c
BLAKE2b-256 b24eb15136dc1ade1a4ab4731aed130c016cef71ded05e68a67be83a4d5dee74

See more details on using hashes here.

Supported by

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