Skip to content
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

Merged
merged 10 commits into from
Jan 31, 2024
Merged

Fix docker user permissions issues #1194

merged 10 commits into from
Jan 31, 2024

Conversation

Silex
Copy link
Contributor

@Silex Silex commented Jan 26, 2024

Hello,

Don't merge this yet, it's not ready.

Closes #1174

@Silex Silex force-pushed the master branch 11 times, most recently from 611ff44 to 32aca43 Compare January 27, 2024 07:55
@Silex
Copy link
Contributor Author

Silex commented Jan 27, 2024

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.

# https://github.com/Tyrrrz/DiscordChatExporter/issues/851
RUN adduser --disabled-password --no-create-home dce
USER dce
# Use a non-root user
Copy link
Owner

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?

Copy link
Contributor Author

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.

@Murat-U-Saglam
Copy link

Any updates on this? I am getting the same issue when using docker compose within my workflow

.docs/Docker.md Outdated Show resolved Hide resolved
.docs/Docker.md Outdated Show resolved Hide resolved
.docs/Docker.md Outdated Show resolved Hide resolved
DiscordChatExporter.Cli.dockerfile Outdated Show resolved Hide resolved
DiscordChatExporter.Cli.dockerfile Outdated Show resolved Hide resolved
docker-entrypoint.sh Outdated Show resolved Hide resolved
@Tyrrrz Tyrrrz changed the title Fix user permissions issues Fix docker user permissions issues Jan 31, 2024
@Tyrrrz Tyrrrz merged commit 211db11 into Tyrrrz:master Jan 31, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.UnauthorizedAccessException in version 2.42.4 and later
3 participants