Search
Question: how can I access my local files (data, R-scripts) from the *docker* R/Bioconductor?
2
gravatar for anton.kratz
2.2 years ago by
anton.kratz30
Japan
anton.kratz30 wrote:

I am using R/Bioconductor by invoking

docker run -p 8787:8787 bioconductor/devel_base

and then I point my browser to

http://localhost:8787

to access RStudio.

It works without any problems.

But how can I access my raw data files and R-scripts on my local filesystem? I.e. how can I link my local filesystem to docker?

 

--

This is under Xubuntu 14.04.3 (xubuntu-14.04.3-desktop-amd64).

ADD COMMENTlink modified 2.2 years ago by Dan Tenenbaum ♦♦ 8.2k • written 2.2 years ago by anton.kratz30
3
gravatar for Dan Tenenbaum
2.2 years ago by
Dan Tenenbaum ♦♦ 8.2k
United States
Dan Tenenbaum ♦♦ 8.2k wrote:

Read the relevant docker documentation. Also read what rocker has to say about permissions when doing this.

 

ADD COMMENTlink written 2.2 years ago by Dan Tenenbaum ♦♦ 8.2k
Thanks, I could get it to work with this command:

docker run -v $(pwd):/home/rstudio/$USER -p 8787:8787 bioconductor/devel_base

 

ADD REPLYlink modified 2.2 years ago • written 2.2 years ago by anton.kratz30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 239 users visited in the last hour