Files
big-bear-scripts/docker-cleanup
Christopher 3618385fe9 feat: Enhance Docker cleanup script (#7)
This commit introduces several improvements to the Docker cleanup script:

- Adds a verbose mode to print detailed messages during the cleanup process.
- Implements a dry run mode to simulate the cleanup without actually removing any resources.
- Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output.
- Adds a summary of the cleanup results at the end of the script.
- Includes a help message to explain the available options.
- Refactors the script to improve readability and maintainability.

The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution.
2024-09-26 10:48:56 -05:00
..
2023-11-15 15:28:22 -06:00
2024-09-26 10:48:56 -05:00

Why?

This is a handy script to clean up a docker instance.

Blog post

https://community.bigbeartechworld.com/t/simplifying-docker-cleanup-a-handy-script-by-bigbeartechworld/266

How to use?

bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/docker-cleanup/run.sh)"