Skip to content

Commit

Permalink
change config folder to the new image's effective location
Browse files Browse the repository at this point in the history
  • Loading branch information
spoltier committed Jun 24, 2024
1 parent a1fef69 commit a4a1e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions version-stable-r-development.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ the container.
- For this to work w/o [permission
issues](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine#avoiding-permission-changes-when-sharing-volumes),
the container user (`rstudio`) must match the UID of the host user (`$UID`).
- In order for the RStudio setting to persist if the container is recreated
- In order for the RStudio settings to persist if the container is recreated
(e.g. after pulling a new `rocker` image), we also use a shared volume (like
`~/.rstudio-docker/4.4.1`) for the `home/rstudio/.rstudio` directory, which is
version-specific in case of multiple R versions
Expand All @@ -118,7 +118,7 @@ docker run -d --restart=always \
-e ROOT=TRUE \
-e USERID=$UID \
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.rstudio \
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.config/rstudio \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
--name rstudio_$R_VER \
Expand Down Expand Up @@ -153,7 +153,7 @@ run_rstudio_ver() {
-e ROOT=TRUE \
-e USERID=$UID \
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.rstudio \
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.config/rstudio \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
--name $CONTAINER_NAME \
Expand Down

0 comments on commit a4a1e8a

Please sign in to comment.