Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

stakkr-org/docker-clean

Repository files navigation

Overview

image

image

image

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

About

A command line tool to clean all unsed docker images, containers, volumes and networks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages