Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtblin/docker-gc
Simple docker garbage collection
https://github.com/jtblin/docker-gc
Last synced: 19 days ago
JSON representation
Simple docker garbage collection
- Host: GitHub
- URL: https://github.com/jtblin/docker-gc
- Owner: jtblin
- License: other
- Created: 2015-12-12T08:56:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-12T10:29:53.000Z (about 9 years ago)
- Last Synced: 2024-10-28T09:07:05.372Z (2 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-gc
Simple docker garbage collection that removes exited containers and dangling images.
## Usage
Run as cron job (every 5 minutes):
docker run -d -v /var/run/docker.sock:/var/run/docker.sock jtblin/docker-gc
Run a one-off:
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock jtblin/docker-gc docker-gc
Deploy as a kubernetes daemonset:
kubectl create -f ds.yaml