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

using latest s6-overlay to allow container to run as non-root #882

Open
rokroskar opened this issue Dec 6, 2024 · 3 comments
Open

using latest s6-overlay to allow container to run as non-root #882

rokroskar opened this issue Dec 6, 2024 · 3 comments
Labels

Comments

@rokroskar
Copy link

Container image name

rocker/rstudio:4.4.2

Container image digest

No response

What operating system related to this question?

Linux

System information

No response

Question

First of all, thank you for all the excellent work that has gone into making and maintaining this library of images!

I've been struggling to get them working in kubernetes without modification; this is primarily due to the restriction of no privilege escalation, but the containers run s6 which needs root on startup. However, the most recent version of s6 seems to go in the direction of partially addressing this - I'm wondering if anyone has tried this out with any success? I've not been able to get a working image with this new version of s6, but am willing to continue trying if it seems that it might yield a working solution.

@eitsupi
Copy link
Member

eitsupi commented Dec 6, 2024

Thanks for your info.
You may want to see #337.

My understanding is that the high risk of changing existing ones due to not being able to check Rstudio Server behavior with CI is preventing s6-overlay updates.
Of course I don't have motivation now to do the update work either.

@rokroskar
Copy link
Author

Thanks @eitsupi for getting back to me - is there any way to avoid using s6 completely? I.e. still benefit from the set up scripts, but skip the s6 parts so the container can start as any user?

@eitsupi
Copy link
Member

eitsupi commented Dec 6, 2024

Perhaps the following process will allow you to run in single-user mode.
https://github.com/rocker-org/devcontainer-features/blob/8c898885e4eb589639fa7af9b26f8809a60ad460/src/rstudio-server/install.sh#L137-L154

In short, rocker/rstudio is not an image intended for such use, so you will need to build it yourself.

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

No branches or pull requests

2 participants