Docker Community Forums

Share and learn in the Docker community.

Corecct path? /data/_data/, or /data/

Hi,
I have docker environment that has the path docker:/var/lib/docker/volumes/data/_data for mountable folders. But documentation talks about docker:/var/lib/docker/volumes/data/ (w/o the last _data folder)
How is the correct path?

The data for declared volumes is located in subfolders in /var/lib/docker/volumes. Depending wheather your volume is a remote share or local data, its _data subfolder is the mount point for the remore share or the folder the local data is stored in.

Though, what are you trying to do? Usually 99% of cases where people try to do something manually in /var/lib/docker or it’s subfolders, it is not the right approach…