This question asks about listing volumes in containers.
But what I'm looking for here is, how do you find volumes configured into an image itself, without creating a container first?
The idea is, I want to know what an image might do with volumes mapped to the host file system, before allowing a container to run from that image.
The official postgres
image is a good example. When you start a container of this image, it automatically creates a volume at /var/lib/postgresql/data
. Is there a way to figure that out before starting a container?