this days I’m testing out Docker 1.11.2 on a CentOS7 with a direct-lvm devicemapper. I created the thin pool and fed it to docker and everything works fine.
Now I’m curious.
How can I inspect the volumes related to the images that are listed in the “docker images” output? I can find the volumes of running containers using “dmsetup info” but nothing related to the images.
Data is there because I can see that space is being consumed in the pool but couldn’t find any volumes.
I don’t think that makes sense. Images don’t have attached volumes. Without trying to break into Docker space, docker volume ls will list volumes that exist in current Docker.
Dockerfile reference | Docker Docs does suggest that the VOLUME instruction has some special semantics (it makes the named directory immutable for the remainder of the Dockerfile). I haven’t read the source, but it wouldn’t surprise me if the implementation of the “docker run populates volumes on startup” feature was just to copy data out of the existing image.
Interesting. So, my question is: where the files of the image live before being copied to a brand new volume created for a container. And, yet, I wonder what this figure means:
It seems to me that the ubuntu:latest image is an actual snapshot and it should exist as such.
I’m trying to read the code but I don’t know Go and it’s difficult.