How to Find Docker Volume Location Linux CentOS

In this blog post, I will show you how to find the default location of a Docker volume.

My Docker environment is running on Linux CentOS 7.7 and I will start with creating a volume.

Get Started

Create Volume

To create a volume on my Docker host, I will run the following command.

docker volume create vol001

The volume name is called vol001.

Check Location

To check the location, I will run the following command with the name of the volume.

docker inspect vol001

Below, you can see the location which is

/var/lib/docker/volumes/vol0001/_data

To get a list of all the Docker volumes on my host I will type.

docker volume list

Processing…
Success! You're on the list.

Posted

in

by