When I do a docker volume inspect <dockerid>
on a Mac, I can see the path to the data, this appears as a /var/lib/docker/volumes/<volume name>
On a Mac, this link does not exist, because docker runs on inside a very tiny VM.
I can use screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
to get into the vm and then navigate to the folder to see the volumes.
So got all that, but my question is: How do I link what is in these volumes on my host machine?
I have tried this: docker run -it --volume hello:/hello2 --name access_volumes busybox:latest /bin/sh
Where hello is the name of a volume I have created.
I can link a folder on my host machine to the container, but I want to backup the content or edit the content of the Volume from my host machine.
How do I do that?