Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 482 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 482 Bytes

docker-container-cleanup

A container that periodically cleans up exited containers

Configuration (Optional)

  • THRESHOLD (Default=85) : This is thedisk usage (in percentage) when you want the cleanup to get triggerred
  • SLEEP (Default=30) : This is the frequency (in seconds) at which you want to check the threshold

Example run

docker run -d --name docker-container-cleanup -v /var/run/docker.sock:/var/run/docker.sock \
  nikhilo/docker-container-cleanup