-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Fix docker user permissions issues #1194
Conversation
611ff44
to
32aca43
Compare
Ok @Tyrrrz I think you can merge. I decided to keep the uid:gid of 1000:1000 for convenience but make it explicit in the Dockerfile, chown the files so it just works the first time the data folder is created, and provide documentation for those who have different ids. Please run some tests yourself. |
DiscordChatExporter.Cli.dockerfile
Outdated
# https://github.com/Tyrrrz/DiscordChatExporter/issues/851 | ||
RUN adduser --disabled-password --no-create-home dce | ||
USER dce | ||
# Use a non-root user |
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.
Can you please add a comment explaining why 1000
was chosen specifically as the ID?
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.
You chose 1000 when you did RUN adduser --disabled-password --no-create-home dce
(it's usually the first user id available). And luckily it happens to map with most installations.
I'm just keeping your chosen id and making it explicit.
Any updates on this? I am getting the same issue when using docker compose within my workflow |
Hello,
Don't merge this yet, it's not ready.
Closes #1174