Open akath20 opened 5 years ago
I'm curious if Docker itself has configuration where it will prune old images/caches based on some policy.
There are a few ways to approach this:
Seeing that it took ~1 year for this to be an issue, totally something we could just do manually every now and then.
AFAIK docker doesn't have a way to prune older images based on some conditional. For me personally, I usually go in and remove some images if I haven't done so after a certain amount of time. You could always do a cron job for this, but it doesn't take a lot of time to go in every once in a while and docker system prune
, or just docker container|image prune
.
I think a cron job would suffice. It's not a big deal, but it may be neglected as we pass it off to tech heads and they forget vs. a cron job.
Makes sense. Always good to have automation where you can.
Whatever we choose, @akath20 you should make a note of this in the handbook.
After leaving the website to make any new database transactions (https://github.com/rit-sse/OneRepoToRuleThemAll/issues/231) either a script or cron job needs to be created to periodically clear out large files created by old docker images/caches.