Last active
March 18, 2018 00:15
-
-
Save nozma/ba5bb2e176e03536e178bcd4312c1ab4 to your computer and use it in GitHub Desktop.
ローカルのRStudioの設定をDockerコンテナ上のRStudio Serverに反映する ref: https://qiita.com/nozma/items/cae323708ff60cc2f67a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rocker/rstudio | |
RUN mkdir -p /home/rstudio/.rstudio/monitored/user-settings/ | |
RUN chown -R rstudio:rstudio /home/rstudio/.rstudio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t my-rstudio . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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