-
Notifications
You must be signed in to change notification settings - Fork 183
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
make image not using root user #2380
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@xoxys what do you think about that change? It will allow you to change the UID of your user with the docker The alternative would be some init script which cares about permissions of files and then starts oCIS as a non root user. |
Yeah, would love to see it running with a non-root user!
|
This is an easy change. Any opinions on the UID itself? I picked 700 randomly as a default... |
The first non-root/non-system UID used by Alpine is |
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.
LGTM
5271347
to
41b26a3
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
The owncloud/ocis docker image now uses a non root user and enables you to set a different user with the docker
--user
parameter. The default user has the UID 1000 is part of a group with the GID 1000.This is a breaking change for existing docker deployments. The permission on the files and folders in persistent volumes need to be changed to the UID and GID used for oCIS (default 1000:1000 if not changed by the user).
Related Issue
Types of changes