Skip to content

rivol/docker-compose-cleanup

Repository files navigation

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.

About

Helper script for cleaning up Docker Compose images

Resources

License

Stars

Watchers

Forks

Packages

No packages published