Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with scrattch 1.1.2 through Docker #8

Open
renniek opened this issue Apr 7, 2025 · 2 comments
Open

issues with scrattch 1.1.2 through Docker #8

renniek opened this issue Apr 7, 2025 · 2 comments

Comments

@renniek
Copy link

renniek commented Apr 7, 2025

Hi there,

I am trying to use scrattch through Docker. I have tried to use this image on two different computers, and have gotten the same error when I run the image.

I don't fully understand the error, but it seems like something with setting up R is working:
2025-04-07 14:46:29 [s6-init] making user provided files available at /var/run/s6/etc...exited 0. 2025-04-07 14:46:29 [s6-init] ensuring user provided files have correct perms...exited 0. 2025-04-07 14:46:29 [fix-attrs.d] applying ownership & permissions fixes... 2025-04-07 14:46:29 [fix-attrs.d] done. 2025-04-07 14:46:29 [cont-init.d] executing container initialization scripts... 2025-04-07 14:46:29 [cont-init.d] 01_set_env: executing... 2025-04-07 14:46:29 skipping /var/run/s6/container_environment/HOME 2025-04-07 14:46:29 skipping /var/run/s6/container_environment/RSTUDIO_VERSION 2025-04-07 14:46:29 [cont-init.d] 01_set_env: exited 0. 2025-04-07 14:46:29 [cont-init.d] 02_userconf: executing... 2025-04-07 14:46:29 2025-04-07 14:46:29 2025-04-07 14:46:29 The password is set to xooth4lo6ahShax9 2025-04-07 14:46:29 If you want to set your own password, set the PASSWORD environment variable. e.g. run with: 2025-04-07 14:46:29 docker run -e PASSWORD=<YOUR_PASS> -p 8787:8787 rocker/rstudio 2025-04-07 14:46:29 2025-04-07 14:46:29 2025-04-07 14:46:29 [cont-init.d] 02_userconf: exited 0. 2025-04-07 14:46:29 [cont-init.d] done. 2025-04-07 14:46:29 [services.d] starting services 2025-04-07 14:46:29 [services.d] done. 2025-04-07 14:46:29 tput: No value for $TERM and no -T specified 2025-04-07 14:46:29 tput: No value for $TERM and no -T specified

In line with this, when I try running "rstudio-server start", nothing happens except for the following printout in the terminal:
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to 'syslog'. TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to 'syslog'.

I also don't see rstudio-server in the bin folder, which I thought suggested that there is not a fully functional install.

I am using the latest version of Docker Desktop (4.40.0), and the latest version of scrattch(1.1.2).

Thank you in advance!

@renniek
Copy link
Author

renniek commented Apr 8, 2025

An update is that I didn't get an error when I ran this from the command line:

docker run -p 8787:8787 alleninst/scrattch:1.1.2 rstudio-server start

However, I can't figure out how to access the rstudio-server. Entering 127.0.0.1:8787 (in similar fashion to BMTK package) doesn't work.

Thank you in advance!

@renniek
Copy link
Author

renniek commented Apr 8, 2025

I also am able to run R scripts using Rscript and load all of the packages, but ideally I would be able to use some form of IDE through the Docker, if that is possible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant