Skip to main content

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.

  • --loglevel - Logging level. Choose from: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET

  • -l, --log - Redirect logging to file

Metadata

Release files for docker-cleaner 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-cleaner 1.3.0
File Size Uploaded Provenance
docker-cleaner-1.3.0.tar.gz 9.4 kB Without provenance Details

Release files / docker-cleaner-1.3.0.tar.gz

Download URL docker-cleaner-1.3.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f32fa7dfe3c4754eed3700cebe049ba21d92e3aeb9a001e99b3b32d2a47fc459
BLAKE2b-256 checksum
How to use checksums
2dce611a5a7de777d06f03dd8153c5f701aa956565e8dc897490b09661ce4e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for docker-cleaner 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page