What are dangling images and how do you remove them?
IntermediateConceptImages, Layers & Storage Drivers
Answer
Dangling images have no tag (<none>:<none>), typically left behind when a tag is moved to a newer build. docker images -f dangling=true lists them; docker image prune removes them; docker image prune -a removes all images not used by a container.
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is a union filesystem / OverlayFS?IntermediateWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat storage drivers does Docker support and which is default?Intermediate