Skip to main content

What’s the difference between a dangling image and an unused image?

Mid Docker
Quick Answer A dangling image is an untagged layer รขโ‚ฌโ€ it was previously tagged but got replaced when you rebuilt. It has no name or tag (:) and nothing uses it. An unused image has a tag but no running or stopped container is using it. docker image prune removes dangling images; --all removes unused ones too.

Answer

Dangling images are untagged leftovers; unused images are tagged but not referenced by containers.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice