Docker Desktop for Windows10 Linux Container

Hi Team,

We need a help from you.

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.

PS D:\Maheswar\Docker\Test-Node> docker volume create testvol
PS D:\Maheswar\Docker\IW\Test-Node> docker inspect testvol
“CreatedAt”: “2019-12-20T12:51:13Z”,
“Driver”: “local”,
“Labels”: {},
“Mountpoint”: “/var/lib/docker/volumes/testvol/_data”,
“Name”: “testvol”,
“Options”: {},
“Scope”: “local”
PS D:\Maheswar\Docker\IW\Test-Node>


I guess you don’t use Docker with the experimental WSL 2 engine, so this path is in a VM that runs in Hyper-V.

Thank you for your response…but the path is empty : “C:\Users\Public\Documents\Hyper-V”

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.

I have validated in Hyper-V manager, But that path also empty. It seems little challenge, as i have to take backup :slight_smile:

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.