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 images -t 120 -o 120 -f images --images-include foo-image bar-image --prune containers volumes -u -l docker-cleanr.log

Also checkout list of arguments

arguments

  • resources - List of resources for removing. Choose from: images, volumes, all

  • -f, --force - Force removing of resources. Choose from: images, volumes, all

  • -u, --untagged - Remove untagged images

  • -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

  • -p, --prune - Prune specified resources. Choose from: containers, images, volumes, all

  • -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.2.1.tar.gz (9.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for docker-cleaner-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ce2d707ca62fa99d155c9331935d5428c87921a2ecf0bb72e98869d9949b993c
MD5 6929702702c627e2e5490fd0a0950243
BLAKE2b-256 87ad13a98a0a31d0158dd60deef33d80ff730e6356f77cffabaec9c8af7863c4

See more details on using hashes here.

Supported by

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