advancedScenario-Based & System Design Questions

A team observes that disk usage on their CI runners grows continuously across builds despite each individual build cleaning up its own containers.

Even disciplined per-build container cleanup doesn't address accumulated images, build cache, and volumes left behind across many different builds over time — recommend a scheduled `docker system prune -a --volumes` (or equivalent CI-runner-level cleanup job) run periodically/between builds, separate from any in-build cleanup steps that only address that specific build's own resources.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to A microservice that depends on three other services via DNS-based service discovery starts a deployment that briefly renames one of those dependent services, breaking startup for several minutes during the transition.← Back to all Docker questions