Docker Community Forums

Share and learn in the Docker community.

Newbie rocker/rstudio starts but I can not connect

I have been using juypter notes books for many years. I am new to Docker and R Studio server. I am trying to figure out how to get R Studio server up and running a remote Linux machine

++ HOST_PORT=54900
++ echo 'ssh tunnel port number: ' 54900
ssh tunnel port number:  54900
++ CONTAINER_PORT=8787
+++ id -u
++ USER_ID=30078
+++ pwd
++ docker run --rm --publish 127.0.0.1:54900:8787/tcp 
-e DISABLE_AUTH=true
 -e USER=aedavids 
-e USERID=30078 
-v /public/home/aedavids/extraCellularRNA:/home/rstudio rocker/rstudio:4.0.0-ubuntu18.04

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] userconf: executing... 
Skipping authentication as requested
deleting user rstudio
creating new aedavids with UID 30078
mkdir: cannot create directory ‘/home/aedavids’: File exists
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

I see the container is up and running.

(base) [aedavids@courtyard extraCellularRNA]$ docker ps
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS              PORTS                              NAMES
3197c818b84b        rocker/rstudio:4.0.0-ubuntu18.04   "/init"                  About an hour ago   Up About an hour    127.0.0.1:54900->8787/tcp          adoring_mestorf

I can connect to it using bash however I can not connect to it from my mac. I believe I have set up the ssh tunnel correct

ssh -o ServerAliveInterval=120 -N -f -L localhost:54900:localhost:54900 courtyard

In chrome on my mac HTTP://localhost:54900 displays a page with a grey background, a “spinning” busy icon and a message “R is taking longer to start than normal”. and three buttons

‘reload’ did not do anything

‘safe mode’ did not do anything

’ terminate R’

Any idea how I can debug this?

Kind regards

Andy

p.s. I tried running the quick start on my local mac. I am able to connect to r studio server from chrome however it asked me for a userid and password. I have no idea what these values should be. I tried my mac account creditials

(base) $ docker run --rm -p 8787:8787 -e PASSWORD=******** rocker/rstudio
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] userconf: executing... 
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.