Helper script for cleaning up Docker Compose images
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
docker_compose_cleanup
docs
tests
.editorconfig
.gitignore
.travis.yml
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
requirements.txt
requirements_dev.txt
setup.cfg
setup.py
tox.ini

README.rst

Docker Compose cleanup

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.