Skip to main content

Helps you cleanup Docker images of multiple Docker Compose projects.

Project description

Docker Compose cleanup

https://img.shields.io/pypi/v/docker-compose-cleanup.svg https://img.shields.io/travis/rivol/docker-compose-cleanup.svg

Helps you cleanup Docker images of multiple Docker Compose projects.

Usage

Install with

$ pip install docker-compose-cleanup

Once installed, just run

$ docker-compose-cleanup
$ # Or, alternatively
$ doco-cleanup

The script will print out commands to remove Docker images related to Docker Compose projects, grouped by projects, e.g.:

Images without tags:
docker image rm sha256:c8f20d0f9a sha256:462683af4d
Project images:
myproject
docker image rm myproject_django:latest myproject_node:latest myproject_celery:latest
pycharm
docker image rm pycharm_helpers:PY-181.4203.547
thtools
docker image rm thtools_app:latest

You can then simply copy & paste to get rid of the specific projects.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.1.0 (2018-04-19)

  • Add colored output, to make project names more visible.
  • Add --version commandline option.

1.0.0 (2018-04-12)

  • First release on PyPI.

Project details


Download files

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

Files for docker-compose-cleanup, version 1.1.0
Filename, size & hash File type Python version Upload date
docker_compose_cleanup-1.1.0-py2.py3-none-any.whl (5.7 kB) View hashes Wheel py2.py3
docker-compose-cleanup-1.1.0.tar.gz (14.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page