Cleanup docker containers and images using docker container prune and docker image prune docker commands.
DELAYgets set as a parameter tosleepso you can put seconds, 1m, 1h, etc.FORCEif set, will add-atodocker image pruneso all unused images, not just dangling ones, will be deleted.- resources tagged with label
do-not-prune=truewill not be cleaned up
docker run -d -e FORCE=true -e DELAY=4h muresan/docker-cleanup