rit-sse / sse-eos

🚢 SSE Technology Infrastructure
1 stars 0 forks source link

Better Docker storage cleanup. #11

Open akath20 opened 5 years ago

akath20 commented 5 years ago

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.

billdybas commented 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.

Tjzabel commented 5 years ago

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.

akath20 commented 5 years ago

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.

Tjzabel commented 5 years ago

Makes sense. Always good to have automation where you can.

billdybas commented 5 years ago

Whatever we choose, @akath20 you should make a note of this in the handbook.