Uh oh!
There was an error while loading. Please reload this page.
WIP: introduce unprivileged images - #772
Conversation
EWouters
commented
Sep 15, 2019
Nice work! |
pierreozoux
commented
Aug 25, 2020
This is indeed nice. Could you separate your PR on 2 commits, one with the changes and one with the update.sh? This makes it easier to review. Thanks :) |
Signed-off-by: Stephan Müller <mail@stephanmueller.eu>
2e00c8c to
81b9c10CompareSigned-off-by: Stephan Müller <mail@stephanmueller.eu>
81b9c10 to
51d464dComparesmueller18
commented
Sep 4, 2020
@pierreozoux I did a rebase on the latest master commit and seperated the changes into two seperat commits. In the meantime, I changed my mind and think it is not worth the effort to support both, privileged and unprivileged container images. The default one should always be unprivileged. With that in mind, I stopped working on this PR because it is not target-oriented for me. |
pierreozoux
commented
Sep 4, 2020
You are right, everything should be unpriviledged and readonly, imho too :) |
tilosp
commented
Sep 4, 2020
wouldn't it be enough to add a environment var, that changes the port? Running as an unprivileged user is already possible with |
smueller18
commented
Sep 5, 2020
Using the |
jan-di
commented
Oct 17, 2020
Additionally to what @smueller18 said, there are a few more cases where nextcloud don't work right when you set the --user parameter. For example (at least, with the apache image):
I think the only clean solution to this would be to make the entrypoint script aware for UID/GID env variables. The entrypoint could make the changes above as root and then start the services under the unprivileged UID/GID. I think this is described in #359 |
fix: nextcloud#359, nextcloud#772, nextcloud#1081, nextcloud#1087, nextcloud#1278 Signed-off-by: J0WI <J0WI@users.noreply.github.com>
fix: nextcloud#359, nextcloud#772, nextcloud#1081, nextcloud#1087, nextcloud#1278 Signed-off-by: J0WI <J0WI@users.noreply.github.com>
J0WI
commented
Sep 6, 2022
closing due #1812 |
fix: nextcloud#359, nextcloud#772, nextcloud#1081, nextcloud#1087, nextcloud#1278 Signed-off-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Following Docker best practices, all images should run as non-root user. This PR introduces
nginximage withnginxinc/nginx-unprivilegedTodos:
nextcloud:unprivileged)Closes#760