Interview Prep/Docker/Volumes & Bind Mounts

What is an anonymous volume and how do you find leftovers?

IntermediateConceptVolumes & Bind Mounts
Answer

A volume with a random 64-hex name, created by VOLUME in a Dockerfile or -v /path without a source. They are not removed by docker rm unless you use -v/--volumes. List unused ones with docker volume ls -f dangling=true; remove with docker volume prune.

All Docker questions Roadmap: Docker & containers

More on Volumes & Bind Mounts