LOGBOOK

HELP

Quiz Entry - updated: 2026.11.10

Where on the host does a Docker volume store its data, and how do you find out?

Under /var/lib/docker/volumes/<volume-name>/_data; docker volume inspect <name> shows it as the Mountpoint.

docker container run -d --mount type=volume,src=myvolume,dst=/tmp alpine
docker volume ls
docker volume inspect myvolume

--mount type=volume,src=myvolume,dst=/tmp creates (if needed) a volume named myvolume and mounts it at /tmp inside the container. The inspect output contains "Mountpoint": "/var/lib/docker/volumes/myvolume/_data", which is the folder on the host holding the files. It belongs to root, so a normal user can't browse it, which is part of what separates a volume from a bind mount.

Volumes defined in a Docker Compose file land in the same place, but Compose prefixes the name with the project name (by default the folder name). The db_data volume of a project in ~/dockerlab/dockercompose becomes /var/lib/docker/volumes/dockercompose_db_data/_data.

Go deeper:

From Quiz: ISLAB / Docker Introduction | Updated: Nov 10, 2026