An interesting question, but I'm not sure that I understand the advantage of using shiny-server and rstudio-server instances from the same container.
Is the goal that the two containers have the same R libraries (for example, so that the package does not need to be installed separately on each) or just have one docker container instead of two? The simple execution of two docker commands instead of one does not seem so burdensome, but perhaps I underestimate it.
, , , , .
, docker-esque / , . (, - ) .
, , .
, rstudio :
docker run --name rstudio -v /usr/local/lib/R/site.library rocker/rstudio true
( RStudio- , :)
docker run --name rstudio -dP -v /usr/local/lib/R/site.library rocker/rstudio
site.library rstudio , :
docker run --volumes-from rstudio -dP rocker/shiny
, clobbers site.library shiny. , rstudio , , . , :
Docker's -volumes-from?
.