Last active
April 13, 2024 17:39
-
-
Save andresjesse/55a7c26139fd8daf4e991595e8ac090d to your computer and use it in GitHub Desktop.
CapRover - Auto clean unused docker images using crontab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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