We are using “Docker Desktop for Windows 10” and with Linux Container.
Here, when we create volume, we are not able to locate the source path of volume(/var/lib/docker/volumes/testvol/_data) in windows file system. Could you please advise.
It is a path inside a VM, not on your Windows machine. Somewhere there is a file containing the virtual hard disk, look for it in the Hyper-V manager.
Can I ask you what you expect to find there? Containers and volumes are isolated from the host, you can’t access them through the file system.
I am trying to locate the path,so I can take continuous backup of that file path. I ll look into Hyper-v manager as suggested by you. I was expecting it would be normal as we see in Linux host machines at path:/var/lib/docker/volume. Thank you for your response.
I ll update you. Also if you find anything please advise.
You don’t backup your volumes by copying internal files from Docker, but by creating .tar or .tar.gz files with their content. Please take a look at these instructions.