Your volume directory is located in /var/lib/docker/volumes/blog_postgres-data/_data and /var/lib/docker usually mounted in C:\Users\Public\Documents\Hyper-v\Virtual hard disks . In any case, you can verify this by looking in the Docker settings.
You can refer to these documents for information on how to share drives with Docker on Windows.
By the way, Source is the location on the host, and Destination is the location inside the container in the following output:
"Mounts": [ { "Name": "fac362...80535", "Source": "/var/lib/docker/volumes/fac362...80535/_data", "Destination": "/webapp", "Driver": "local", "Mode": "", "RW": true, "Propagation": "" } ]
=================================================== ===========================
Updated to answer questions in the comment:
My main curiosity is that sharing images, etc. Great, but how do I share my data?
Actually volume designed for this purpose (manage data in a Docker container). The data in the volume is stored on the FS host and isolated from the lifecycle of the container / Docker image. You can share your data in the volume:
Connect the Docker volume to the host and reuse it
docker run -v/path/on/host: /path/inside/container image
Then all your data will be saved in /path/on/host ; You can create a backup, copy it to another computer and restart the container with the same volume.
Create and mount the data container.
Create a data container: docker create -v/dbdata --name dbstore training/postgres/bin/true
Start other containers based on this container using --volumes-from : docker run -d --volumes-from dbstore --name db1 training/postgres , then all the data generated by db1 will be stored in the volume of the dbstore container.
For more information, you can refer to the official Docker volume documents .
Simply put, volumes is just a directory on your host with all the data in your container, so you can use any method you used previously to back up / share your data.
Can I transfer the volume to the docker hub, as I do with images?
Not. A Docker image is something that you can transfer to a Docker hub (aka βregistryβ); but no data. You can backup / save / share your data in any way that you like, but sending data to the Docker registry for sharing does not make any sense.
can i make backups etc?
Yes, as written above :-)