Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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