Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

This utility is designed for cleaning up docker resources.

Project Description

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 -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
  • -t, --timeout - Timeout of cleaning. Live it empty in case of using cron job.
  • -l, --log - Redirect logging to file
Release History

Release History

This version
History Node

1.1.1

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
docker-cleaner-1.1.1.tar.gz (8.8 kB) Copy SHA256 Checksum SHA256 Source Jun 20, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting