We are working to create a standard “data science” image in Docker to help our team maintain a consistent environment. In order for this to be useful to us, we need containers to have read / write access to our network. How to connect a network drive to a docker container?
Here I tried using the Rocker / Rstudio image from the Docker Hub:
It works:
docker run -d -p 8787:8787 -v //c/users/{insert user}:/home/rstudio/foobar rocker/rstudio
This does not work (where P is the mapped drive location): docker run -d -p 8787:8787 -v //p:/home/rstudio/foobar rocker/rstudio
This also does not work: docker run -d -p 8787:8787 -v //10.1.11.###/projects:/home/rstudio/foobar rocker/rstudio
Any suggestions?
I am relatively new to Docker, so please let me know if I'm not completely clear.
source share