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.

Source Distribution

docker-compose-cleanup-1.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

docker_compose_cleanup-1.1.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file docker-compose-cleanup-1.1.0.tar.gz.

File metadata

File hashes

Hashes for docker-compose-cleanup-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1b112d4c599e8fad852a7b041f67c6581a3b63a59fc3bd01a98edc9bcdcb4f9b
MD5 cb9b0091851e19a4e8a9a3623b9efe88
BLAKE2b-256 5da4cdc92000e24da8c25628ca909f7e91a69995867ea8d304a8f3759c760295

See more details on using hashes here.

File details

Details for the file docker_compose_cleanup-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for docker_compose_cleanup-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae3bb5fc8fcd5760830f9a5dc9e759c3e4321eb33c2c019cc8af435c2d86b0f3
MD5 b30f8fc2ed04b7f34af24c276278034a
BLAKE2b-256 2c84d3a4dedb50c62a67dcc427a540db82ac8f392a5ee0ccdeac3ffbccd30c9f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page