Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mobomo/docker-gc
Docker Garbage Cleanup scripts
https://github.com/mobomo/docker-gc
Last synced: about 1 month ago
JSON representation
Docker Garbage Cleanup scripts
- Host: GitHub
- URL: https://github.com/mobomo/docker-gc
- Owner: mobomo
- Created: 2024-02-21T16:30:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T17:16:58.000Z (11 months ago)
- Last Synced: 2024-03-25T22:59:28.736Z (10 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker GC
Script aimed at cleaning up a docker environment, specifically for builder cases and devops agents
## Getting Started
These instructions will cover usage information
### Prerequisities
In order to run this container you'll need docker installed.
- [Windows](https://docs.docker.com/windows/started)
- [OS X](https://docs.docker.com/mac/started/)
- [Linux](https://docs.docker.com/linux/started/)### Usage
Clean entire system without holding back
```shell
./docker-gc.sh --purge-all
```## TODO
- Implement ability to whitelist containers to not get destroyed, ie base images, registry, etc
- Add command to help cleanup environment without destroying everything