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.
More on Volumes & Bind Mounts
What are the three ways to persist or share data with a container?BeginnerVolume vs bind mount: when do you pick which?BeginnerWhat is the difference between `-v` and `--mount`?BeginnerHow does a new named volume get populated?IntermediateHow do you back up and restore a named volume?IntermediateWhere is a named volume physically stored and can you edit it directly?Intermediate