-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: Rootless containers #2029
base: master
Are you sure you want to change the base?
Conversation
…t depend on its name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive work @emrahcom ! 👏 I left some comments, please take a look!
Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net>
Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net>
Sorry for the |
I'll give this a try shortly @emrahcom, thanks a lot for the swift responses to my comments! |
Thank you very much for your helps. |
Hey @emrahcom quick update: I will start testing the end of this week or the next. Something important we need to handle here is migrating the XMPP data from existing installations since it may contain user accounts. |
I will check the option to use |
This PR allows Jitsi containers to run without using
root
account.Main changes:
s6-overlay is upgraded to
v3.2.0.2
All processes are run by a non-root user:
s6
Currently, container's filesystem is still writable but the active user is
s6
. So, it cannot write into the root's folders.Config files are created in
/run
by using templates and provided config files (from/config
)The writable folders for
s6
are:Volumes are updated to differ read-only and writable volumes:
/config
contains read-only config files/storage
contains created files during the runtime such as recordings, logs, etc./tmp
contains created temporary files the runtimeExpected folders on host:
CAPS_SYS_ADMIN
anymore. Therfore Chrome is run with--no-sandbox
.My plan is to create a second PR to make container's filesystem completely read-only after a while. Actually this also works in my test but I don't want to make it harder to debug.