Skip to content

Instantly share code, notes, and snippets.

@umardx
Created November 6, 2020 08:27
Show Gist options
  • Save umardx/883b92029e2710a2d7cde8e3eb3f3ac9 to your computer and use it in GitHub Desktop.
Save umardx/883b92029e2710a2d7cde8e3eb3f3ac9 to your computer and use it in GitHub Desktop.
#!/bin/bash
log=/var/log/docker-prune.log
date +'=== docker-prune execute at %Y.%m.%d %H:%M ===' >> $log
docker system prune -af --filter "until=$((30*24))h" >> $log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment