-
Notifications
You must be signed in to change notification settings - Fork 271
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
Two separate rocker containers mounting same directory - the one terminates the other #415
Comments
Thanks for the report, yes, I've experienced this too. A few points of clarification: getting "logged out" of a session is not the same thing as "the session not running". Even with a single session, you can log out (the new security features in the latest version log you out after 60 minutes of inactivity), but any scripts still running there will keep running. You just cannot be simultaneously logged into both sessions with the same project open when they share working directories. This is, as far as I know, just how RStudio Server works. Project-specific session info is stored in temporary files in the working directory of the project. Note that you should be able to open different projects in the different containers that share the same volume no problem. In addition to opening new sessions on new ports when I want to have multiple running interactive sessions, I've found things like the "jobs" panel or using HTH. |
Thank you for your reply. That helps me understand the issue better. But even when I am in different projects in the two separate containers, it still happens. I closed out of the project in Container A, and stayed in the project in Container B. Still, i could have both open at the same time. |
Just a note to future self: yes, this seems to have become more of an issue on current RStudio release than it was in the past. May be related to their changes in how RStudio handles its own dotfiles? warrants more investigation. (possibly related: may need more investigation about the filelock issue which seems to have returned as well). |
I there, I am experiencing a very similar issue when trying to run two rocker-based containers with two separated Could it be the same issue as described on this ticket or could there some basic step I am missing when running two rstudio containers in parallel? |
Are you binding to |
Thanks a lot for the tip @cboettig! This works like a charm. For reference, I got inspiration from your instructions on how to use Caddy as well as this Stackoverflow answer to get an https connection and adapted them to my usecase. My
And my
Maybe there is a better way to do this, but this works fine for me now. Thanks a lot for this amazing project that Rocker is! I don't know how I would work without it 😃 |
i have two separate rocker containers with different packages and versions of R.
My data are in a single directory, so when I use
docker run
I am mounting each container to the same directory. I am directing them to different ports.The problem I'm noticing is that I can't have both running at the same time. When I log into rstudio in my browser for Container A, Container B gets logged out (back to the Rstudio login screen).
Here are the commands I'm running (password removed):
I'm running Ubuntu 18.04
The text was updated successfully, but these errors were encountered: