I have a named volume foo
. I can find its physical location on the host via docker volume inspect foo
which gives me something like /var/lib/docker/volumes/foo/_data
. I want to be able to rsync files from and to that directory on the host (i.e from and to that named volume) but I want to avoid doing that directly on that path which will also require me using root
.
Is there a clean way to temporarilly map that foo
named volume on the host’s /tmp/foo
path so I can do whatever I want to be doing and then removing that mapping?