Disk on the build server keeps filling up with images.
BeginnerScenarioMulti-stage builds, cache, tags and registries
Answer
Situation read → Old tags, dangling layers and build cache accumulate.
What I'd do →
docker system df
docker image prune -a --filter "until=168h"
docker builder prune --filter "until=72h" --keep-storage 20GB
Run it from a nightly cron or a CI cleanup job and configure BuildKit GC in buildkitd.toml.
Why → docker system prune -a is blunt and can delete images other jobs need.
Interview tip → Do not prune volumes unattended; that deletes data.
More on Multi-stage builds, cache, tags and registries
Show a multi-stage Dockerfile for a Java Spring Boot app and explain what you gain.BeginnerCI rebuilds from scratch every run and takes 12 minutes. How do you bring it down?IntermediateYou tag every build `myapp:latest`. A rollback is requested. What happens?BeginnerHow do you promote an image from dev to prod registry without rebuilding?IntermediateWhen do you use `--no-cache` and when is it a smell?BeginnerExplain a build where `COPY` always misses the cache even though code did not change.Intermediate