Docker Community Forums

Share and learn in the Docker community.

/ Mountpoint path does not exist on my computer

Sorry, I am SO confused with volumes. I am sure this has been asked a thousand times, but I can’t find something that will sooth my mind.

Please point me to something that will help me understand how to make the / of my container to be accessible from my host.

I have created a volume in the tutorial and this is the inspect:
$ docker volume inspect todo-db
[
{
“CreatedAt”: “2020-12-19T16:46:33Z”,
“Driver”: “local”,
“Labels”: null,
“Mountpoint”: “/var/lib/docker/volumes/todo-db/_data”,
“Name”: “todo-db”,
“Options”: null,
“Scope”: “local”
}
]

I don’t understand how to reach /var/lib/docker/volumes/todo-db/_data on my Mac.
This path does not exist. So anything stored there seems virtual, in a Docker VM

I really don’t want that. I don’t want my data to be dependent on Docker.
If something happens to my install, I purge data by mistake everything disappear.
ALSO, I want to share my mount point content with my main OSX OS. I may want to update stuff directly from my OS.

Thanks