Hi Luben,
On 14 May 2026 at 10:35, Luben Dimov wrote:
| First time docker and rocker user here (and no programming expertise). After
| trying on and off for several months, I managed to install and run rocker on
my
| Linux Mint, with RStudio running in the web browser
| at?http://localhost:8787/?and I was finally able to figure out how to access
| files, graphs, etc., that I save in RStudio at localhost:8787 by mounting a
| folder from my host machine in the container, so files are saved on my
system.?
|
| A newbie question... Running this in the Linux terminal:
|
| sudo docker run --rm -ti rocker/r-ver
Small aside: this is discouraged. You are generally better off making
yourself a member of the docker group so that you in your account can run
docker. Unconditionally letting docker run as root is somewhat dangerous.
See eg here https://docs.docker.com/engine/install/linux-postinstall/ or via
different tutorials.
| starts the latest version of R, the 4 .6.0 (2026-04-24)
|
| But running either:
| sudo docker run --rm -ti -e PASSWORD=yourpassword -p 8787:8787 -v ~/rstudio-
| projects:/home/rstudio rocker/tidyverse
| or
| sudo docker run --rm -ti -e PASSWORD=yourpassword -p 8787:8787 -v ~/rstudio-
| projects:/home/rstudio rocker/rstudio
|
| and then opening the localhost:8787, shows that it is running R version 4.4.1
| (2024-06-14)
|
| How do I update the R version in the rocker container?
Usually by downloading updated containers: `docker pull rocker/rstudio`.
Cheers, Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Support my Tour de Shore 2026 ride benefiting Maywood Fine Arts! More info at
https://dirk.eddelbuettel.com/blog/2026/04/03#sponsor_tour_de_shore_2026