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
To create a volume on my Docker host, I will run the following command.
docker volume create vol001
The volume name is called vol001.
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
This post was first published on our sister blog https://www.ntweekly.com