Bird
0
0

What is the effect of running docker image prune without any options?

easy📝 Conceptual Q2 of 15
Docker - Resource Management
What is the effect of running docker image prune without any options?
ARemoves all unused images not referenced by any container
BRemoves all images including those in use by containers
CRemoves all stopped containers
DRemoves all volumes
Step-by-Step Solution
Solution:
  1. Step 1: Understand the prune command for images

    docker image prune removes dangling (unused) images by default.
  2. Step 2: Clarify what images are removed

    It only removes images not referenced by any container, not those in use.
  3. Final Answer:

    Removes all unused images not referenced by any container -> Option A
  4. Quick Check:

    Image prune removes unused images = Removes all unused images not referenced by any container [OK]
Quick Trick: Image prune cleans unused images, not active ones [OK]
Common Mistakes:
  • Thinking it removes images used by running containers
  • Confusing image prune with container prune
  • Assuming it removes volumes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes