Skip to content

Instantly share code, notes, and snippets.

@andresjesse
Last active April 13, 2024 17:39
Show Gist options
  • Save andresjesse/55a7c26139fd8daf4e991595e8ac090d to your computer and use it in GitHub Desktop.
Save andresjesse/55a7c26139fd8daf4e991595e8ac090d to your computer and use it in GitHub Desktop.
CapRover - Auto clean unused docker images using crontab
Setup crontab for constant disk cleanup:
# crontab -e
Add line:
antigo:
*/10 * * * * /usr/bin/docker system prune -af
3 da manhã:
0 3 * * * /usr/bin/docker system prune -af
# crontab -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment