Performs continuous cleanups on unused Docker resources on the host.
337
This containers performs continuous cleanups on unused Docker resources on the host.
Basically it performs docker system prune --all from time to time.
docker run -v /var/run/docker.sock:/var/run/docker.sock doggielicc/docker-janitorservices:
janitor:
image: doggielicc/docker-janitor
build: .
deploy:
mode: global
environment:
- SLEEP_TIME=86400
- UNUSED_TIME=24h
- EXCLUDE_RESOURCES="do-not-remove"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
docker stack deploy --compose-file docker-compose.yml janitor
Content type
Image
Digest
sha256:a7d013a4b…
Size
61.7 MB
Last updated
7 months ago
docker pull doggielicc/docker-janitor