Skip to main content

A command to clean docker images, containers, networks and volumes.

Project description

Overview

https://scrutinizer-ci.com/g/stakkr-org/docker-clean/badges/quality-score.png?b=master https://travis-ci.com/stakkr-org/docker-clean.svg?branch=master https://img.shields.io/pypi/l/docker-clean.svg Maintainability Test Coverage

Docker-Clean

Command line tool to clean docker containers, images, volumes and networks that are not in use currently (started).

Usage: docker-clean [OPTIONS]

  Clean Docker containers, images, volumes and networks that are not in use

Options:
  -f, --force                           Do it
  -c, --containers / --no-containers    Remove containers
  -i, --images / --no-images            Remove images
  -V, --volumes / --no-volumes          Remove volumes
  -n, --networks / --no-networks        Remove networks
  --help                                Show this message and exit.

Development

Setup your env

To develop, you have to create a virtual environment :

$ git clone git@github.com:stakkr-org/docker-clean.git docker-clean
$ cd docker-clean
$ python3 -m venv venv
$ source venv/bin/activate
# For Windows use "venv\Scripts\activate"

Then install docker-clean and its dependencies :

$ python -m pip install --upgrade pip
$ python -m pip install -e .
$ python -m pip install -r requirements-dev.txt

Run Tests

$ py.test

Download files

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

Files for docker-clean, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size docker-clean-1.0.2.tar.gz (7.6 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 Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page