Skip to content

Instantly share code, notes, and snippets.

@nozma
Last active March 18, 2018 00:15
Show Gist options
  • Save nozma/ba5bb2e176e03536e178bcd4312c1ab4 to your computer and use it in GitHub Desktop.
Save nozma/ba5bb2e176e03536e178bcd4312c1ab4 to your computer and use it in GitHub Desktop.
ローカルのRStudioの設定をDockerコンテナ上のRStudio Serverに反映する ref: https://qiita.com/nozma/items/cae323708ff60cc2f67a
FROM rocker/rstudio
RUN mkdir -p /home/rstudio/.rstudio/monitored/user-settings/
RUN chown -R rstudio:rstudio /home/rstudio/.rstudio
docker build -t my-rstudio .
docker run \
-v ~/.rstudio-desktop/monitored/user-settings:/home/rstudio/.rstudio/monitored/user-settings \
-v ~/.R/rstudio/keybindings:/home/rstudio/.R/rstudio/keybindings \
-p 8787:8787 my-rstudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment