Home > Back-end >  Cant find local volume on docker rocker
Cant find local volume on docker rocker

Time:02-01

This is a very basic question, but I can't seem to solve it, even though it seems that this has been answered here:

I am trying to run the rocker/tensorflow docker container in ubuntu 20.04 but I also need it to access the following folder /home/au687614/Documents/LUCAS_ML

So I tried to follow this answer

and run this:

docker run -d -p 8787:8787 -v $(pwd):/home/au687614/Documents/LUCAS_ML:/home/rstudio/LOOKATMEEE -e ROOT=TRUE rocker/tensorflow

this however gets me the following error:

docker: Error response from daemon: invalid mode: /home/rstudio/LOOKATMEEE.
See 'docker run --help'

I am not sure what the mistake is any help is welcome

CodePudding user response:

A correct syntax would be:

docker run -d -p 8787:8787 -e PASSWORD=yourpassword -v /path/to/your/local/folder:/home/rstudio/LOOKATMEEE:rw rocker/tensorflow

This comes from this e-book where you can find explanations about the syntax and other Docker essentials explained.

  • Related