Interview Prep/Docker/Volumes & Bind Mounts

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.

All Docker questions Roadmap: Docker & containers

More on Volumes & Bind Mounts