Helps you cleanup Docker images of multiple Docker Compose projects.
- Free software: ISC license
- Documentation: https://docker-compose-cleanup.readthedocs.io.
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.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.