Skip to content

Commit a4a1e8a

Browse files
committed
change config folder to the new image's effective location
1 parent a1fef69 commit a4a1e8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

version-stable-r-development.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ the container.
9595
- For this to work w/o [permission
9696
issues](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine#avoiding-permission-changes-when-sharing-volumes),
9797
the container user (`rstudio`) must match the UID of the host user (`$UID`).
98-
- In order for the RStudio setting to persist if the container is recreated
98+
- In order for the RStudio settings to persist if the container is recreated
9999
(e.g. after pulling a new `rocker` image), we also use a shared volume (like
100100
`~/.rstudio-docker/4.4.1`) for the `home/rstudio/.rstudio` directory, which is
101101
version-specific in case of multiple R versions
@@ -118,7 +118,7 @@ docker run -d --restart=always \
118118
-e ROOT=TRUE \
119119
-e USERID=$UID \
120120
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
121-
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.rstudio \
121+
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.config/rstudio \
122122
-e DISPLAY=$DISPLAY \
123123
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
124124
--name rstudio_$R_VER \
@@ -153,7 +153,7 @@ run_rstudio_ver() {
153153
-e ROOT=TRUE \
154154
-e USERID=$UID \
155155
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
156-
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.rstudio \
156+
-v $HOME/.rstudio-docker/$R_VER:/home/rstudio/.config/rstudio \
157157
-e DISPLAY=$DISPLAY \
158158
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
159159
--name $CONTAINER_NAME \

0 commit comments

Comments
 (0)