What is a dangling image and what is an unused image?

In the docker documentation of docker image prune it is possible to use the -a flag to

Remove all unused images, not just dangling ones

and later

Remove all dangling images. If -a is specified, will also remove all images not referenced by any container.

Can someone explain to me what dangling images are and what’s the difference between dangling and unused images?

8 Answers
8

Leave a Comment