-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Prune based on age #28497
Copy link
Copy link
Closed
Labels
area/imagesImage ServiceImage Servicekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
Metadata
Metadata
Assignees
Labels
area/imagesImage ServiceImage Servicekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
#26108 is fantastic. However, it doesn't handle this use case: a CI server where I need to keep images around for a couple days for caching, but need to prune them after that. I would like to have a time parameter (in days or hours) to exclude image/container/etc pruning. An LRU system would be ideal, but more technically complicated. For context, I am handling this with the script below. It's a little gross, but gets the job done.