Skip to content

BrightPowerSoftware/docker-cleanup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

docker-cleanup

Cleanup docker containers and images using docker container prune and docker image prune docker commands.

  • DELAY gets set as a parameter to sleep so you can put seconds, 1m, 1h, etc.
  • FORCE if set, will add -a to docker image prune so all unused images, not just dangling ones, will be deleted.
  • resources tagged with label do-not-prune=true will not be cleaned up
docker run -d -e FORCE=true -e DELAY=4h muresan/docker-cleanup

About

Cleanup docker containers and images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%