Skip to content

Commit ffbfd4b

Browse files
committed
2nd round PR feedback
1 parent 5642adb commit ffbfd4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

version-stable-r-development.Rmd

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ container and be shared with it (and possibly multiple other containers), e.g. u
100100
`~/workspace` on the host machine and `/home/rstudio/workspace` in
101101
the container.
102102
- For this to work w/o [permission
103-
issues](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine#avoiding-permission-changes-when-sharing-volumes),
103+
issues](https://rocker-project.org/images/versioned/rstudio.html#userid-and-groupid),
104104
the container user (`rstudio`) must match the UID of the host user (`$UID`).
105105
This has the effect of setting the ownership of `~/workspace` on the host machine to `$UID` if it is not already owned by that user.
106106
- In order for the RStudio settings to persist if the container is recreated
@@ -125,6 +125,7 @@ docker run -d --restart=always \
125125
-e DISABLE_AUTH=true \
126126
-e ROOT=true \
127127
-e USERID=$UID \
128+
-e GROUPID=$GID \
128129
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
129130
-v $HOME/.rstudio-config/$R_VER:/home/rstudio/.config/rstudio \
130131
-e DISPLAY=$DISPLAY \
@@ -158,8 +159,9 @@ run_rstudio_ver() {
158159
docker run -d --restart=always \
159160
-p 127.0.0.1:$PORT:8787 \
160161
-e DISABLE_AUTH=true \
161-
-e ROOT=TRUE \
162+
-e ROOT=true \
162163
-e USERID=$UID \
164+
-e GROUPID=$GID \
163165
-v $HOME/$SHARED_DIR:/home/rstudio/$SHARED_DIR \
164166
-v $HOME/.rstudio-config/$R_VER:/home/rstudio/.config/rstudio \
165167
-e DISPLAY=$DISPLAY \

0 commit comments

Comments
 (0)