learning_docker icon indicating copy to clipboard operation
learning_docker copied to clipboard

cannot use -e USERID or -e GROUPID with 4.2.2

Open dtm2117 opened this issue 2 years ago • 3 comments

Hi, @davetang

Amazing work. I've used your tutorial to make a dockerized Rstudio with 4.1.2 for a while now.

When trying to create a new version with R 4.2.2, but if i use a userid and groupid argument in the run script i get this error: Screenshot 2023-02-23 at 2 39 46 PM

it works perfectly fine with my 4.1.2 build.

Any Ideas??

Thanks!!

dtm2117 avatar Feb 23 '23 19:02 dtm2117

Hi @dtm2117,

I got several messages recently about issues with RStudio Server and I just wrote a blog post about it.

I think you can now exclude the following parameters with the latest Rocker Docker image:

           -e USERID=$(id -u) \
           -e GROUPID=$(id -g) \

Let me know if that fixes your problem.

Cheers, Dave

davetang avatar Feb 24 '23 01:02 davetang

so unfortunately our server runs on 14.04 so Docker version 18.06.3-ce, build d7080c1

I can run the rocker rstudio image and get to the rstudio-server but cannot save any files:

image

this is the script i use to start the server

        docker run  \
        -p 8788:8787 \
        -d  \
        --rm  \
        --name rstudio_server_4_2 \
        -v /data1/users/dmelnekoff/rstudio_docker_4_2_2/r_packages/:/packages \
        -v /data1/:/data1/ \
         -v /data2/:/data2/ \
        -e PASSWORD=password \
        melnecure/rstudio:4.2.2_fixed ``` 

and i used the docker file onthe github to build my container

dtm2117 avatar Feb 24 '23 16:02 dtm2117

You'll need to update your Ubuntu version to update Docker to use R-4.2.2. I believe that you can use up to version R-4.2.0 with your current environment and setup.

davetang avatar Feb 25 '23 01:02 davetang