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
Don't drop from root, causes error when changing file permission #17
Conversation
The container drops root for security reasons. The container runs as a non-privileged user $ chown -R 1000:1000 ~/.lounge |
I'm cautioned with that as well and thanks for the input. However that solution is not portable, I cannot just run If it's indeed invalid, maybe we should document the extra steps here? |
I agree with you, I tend to run my containers with root user. The However, if this were to pass we'd need to remove the user part in the README, build args and some We'd also probably want to update the |
@zkanda Do you want to update the PR with the stuff I mentioned? Otherwise, if you unlock this PR I could take a look at it later today and update this PR. |
@williamboman You can do it, this PR should already be unlock. As for the directory, it would make more sense if it's in |
@zkanda Do you have any ideas how to change volume paths and keep backwards compatibility? |
We need to detect if it's pre-2.0, how about we just tackle the paths later and just change the README and Dockerfile for now? That way we can attack that issue alone. |
When running docker-compose with volumes, I always get this error from lounge.
Which basically means it cannot change the permission of the folder
data
because it doesn't have the right permission.It's either we don't drop the user to lounge or we don't do a
chmod
on https://github.com/thelounge/lounge/blob/master/src/command-line/index.js#L20