I have a data set stashed in /vms1/thoth/new_maplab_shared
, but when I
$ docker run -it --mount type=bind,source=/vms1/thoth/new_maplab_shared,target=/new_maplab_shared edd5afa10b5f
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /vms1/thoth/new_maplab_shared.
See 'docker run --help'.
$ ls -l /vms1/thoth/new_maplab_shared
total 4148912
-rw-rw-r-- 1 thoth thoth 2673031511 Mar 10 2021 MH_01_easy_ordered.bag
-rw-rw-r-- 1 thoth thoth 1571292346 Mar 10 2021 MH_01_easy.zip
The directory clearly exists. If I
# mount -o bind /vms1/thoth/new_maplab_shared /home/new_maplab_shared
$ docker run -it --mount type=bind,source=/home/new_maplab_shared,target=/new_maplab_shared edd5afa10b5f
root@5d2bbc6202b1:/# ls /new_maplab_shared/
MH_01_easy.zip MH_01_easy_ordered.bag
it works.
What is going on here, and how can I eliminate the bind mount kludge on the host?
which docker
reports /snap/bin/docker; andsnap list | grep docker
shows I have version 20.10.8