How do you inspect which mounts a container has?
BeginnerConceptVolumes & Bind Mounts
Answer
docker inspect -f '{{json .Mounts}}' web | jq
It lists each mount's Type, Source, Destination, RW and propagation. Inside the container, findmnt or cat /proc/self/mountinfo shows the same.
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`?BeginnerWhat is an anonymous volume and how do you find leftovers?IntermediateHow does a new named volume get populated?IntermediateHow do you back up and restore a named volume?Intermediate