Closed paupaiz closed 3 years ago
running whoami still returns rstudio
So you're not the root
user. This depends also on how you launch docker.
$ docker run -ti --rm r-base whoami
root
$
In the container I am. In rstudio I am not but I want to access a bind mount that is on root dir (I tried putting it after /home/.cache but for some reason gets changed to /root/.cache)
We are in the wrong repo within rocker here. You are having rstudio usage questions (the RStudio product runs as user 'rstudio') so I suggest I transfer this to repo rocker-versioned2.
One short way out is to look into docker exec
to get yourself a second shell inside the running container.
Edit Oh, sorry, your screen shot already shows docker exec
so you know that already.
Closing this as refiled in versioned2.
I used the -e ROOT=true option and still got the issue on the picture attached (i.e. running whoami still returns rstudio). Any suggestions greatly appreciated!