Docker Community Forums

Share and learn in the Docker community.

Where are docker volumes stored on host when creating under Linux guest in WSL-2

I’m using docker desktop 19.03.5 on windows 10 Pro and running Linux guest OS’s under WSL 2.

When I create a volume on Linux guest OS (e.g. Ubuntu 18.04.3 LTS) and run:

 docker volume create myvolume
 docker volume inspect myvolume

It reports the mountpoint as:

 "Mountpoint": "/var/lib/docker/volumes/myvolume/_data",

But this directory does not exist anyone know where it actually stores the data on the host?

These two StackOverflow posts helped me figure this out: