advancedTop 100 Interview Questions
What does `docker image prune -a` do differently from `docker image prune`?
Without `-a`, only dangling images (untagged, unreferenced layers left over from rebuilds) are removed. With `-a`, all images not currently used by any container are removed, including tagged ones not actively in use — a more aggressive cleanup.
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