File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ the container.
95
95
- For this to work w/o [ permission
96
96
issues] ( https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine#avoiding-permission-changes-when-sharing-volumes ) ,
97
97
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
99
99
(e.g. after pulling a new ` rocker ` image), we also use a shared volume (like
100
100
` ~/.rstudio-docker/4.4.1 ` ) for the ` home/rstudio/.rstudio ` directory, which is
101
101
version-specific in case of multiple R versions
@@ -118,7 +118,7 @@ docker run -d --restart=always \
118
118
-e ROOT=TRUE \
119
119
-e USERID=$UID \
120
120
-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 \
122
122
-e DISPLAY=$DISPLAY \
123
123
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
124
124
--name rstudio_$R_VER \
@@ -153,7 +153,7 @@ run_rstudio_ver() {
153
153
-e ROOT=TRUE \
154
154
-e USERID=$UID \
155
155
-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 \
157
157
-e DISPLAY=$DISPLAY \
158
158
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
159
159
--name $CONTAINER_NAME \
You can’t perform that action at this time.
0 commit comments