How do you keep CI Docker disk usage under control?
BeginnerProductionBuild Performance & CI
Answer
Use ephemeral runners or schedule docker system prune -af --filter "until=72h", docker builder prune --keep-storage 20GB, and put /var/lib/docker on a dedicated volume with alerts at 80%. Self-hosted runners that run for weeks without pruning are the number one cause of "no space left on device".
More on Build Performance & CI
How do you make Docker builds fast in CI where runners are ephemeral?BeginnerWhat are the cache backends in buildx?BeginnerWhy does `inline` cache often disappoint?AdvancedHow do you structure a Python Dockerfile for the best caching and size?IntermediateHow do you structure a Node.js production image?IntermediateHow do you build a small Java image?Beginner