Skip to content
Prev 7350 / 21312 Next

[Bioc-devel] Docker granularity: containers for individual R packages, running on a normal R installation?

One way to achieve that is to mount a directory from your host system 
inside the container:
     # Creating a subdirectory in /home/rstudio and making it read/write 
for all (permissions in dockers FS can be a bit tricky)
         docker run --name="rstudio-local-data" 
bioconductor/release_sequencing bash -c 'mkdir /home/rstudio/data && 
chmod o+rw /home/rstudio/data'

     # Committing the changes to create a new image from the now 
modified bioconductor/release_sequencing
         docker commit rstudio-local-data rstudio-local-data

     # Mounting my current working directory inside the docker and 
starting rstudio-server
         docker run -p 8787:8787 -v $(pwd):/home/rstudio/data 
rstudio-local-data supervisord

 From there on you can open a browser and navigate to 
http://localhost:8787 as Martin said.

/Bastian