Smart cache cleanup for Docker images & volumes
It has been pointed out in several issues and tickets that users and customers are running out of disk space on their Runner hosts because the caching for the GitLab Runner seems to continue to consume disk space until an admin manually intervenes.
But this script only cleans up images, not volumes. And it clears up images indiscriminately. Which means that builds will be slower for a while until caches for most-used resources are rebuilt. Ideally we would only evict the least recently used resources.
I found another tool here: GitLab.org / gitlab-runner-docker-cleanup. But it isn't being maintained.
A smart cache cleanup mechanism included in the Runner.