The forum search for “docker volume create bind” made me find an old post of mine. Plenty of the search results cover the topic…
Here is the syntax on how to create a local named volume that binds a local folder:
docker volume create --opt type=none --opt o=bind --opt device=/data/volumes/testvol testvol
Just replace the path in device=
and maybe use a more meaningful name than I did in the example.
The Mounpoint will always be in /var/lib/docker/volumes/{volume name}/_data; there is no way arround that.