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

Consider hardcoding GID alongside UID for image user? #462

Open
decentral1se opened this issue Jul 28, 2023 · 0 comments
Open

Consider hardcoding GID alongside UID for image user? #462

decentral1se opened this issue Jul 28, 2023 · 0 comments

Comments

@decentral1se
Copy link

decentral1se commented Jul 28, 2023

ARG UID=10000

It's cool that you're doing this!

However, due to an open issue in Docker (moby/moby#2259) we need to chown the volume from the host machine to match user permissions. This is fine but because you did not hardcode the GID also, it changes on each deployment? This means we can't write scripts that do this automatically because the GID value is changing.

See https://github.com/mastodon/mastodon/blob/74903af7ce6a0622752e19b1e0b326ecfa0463cb/Dockerfile#L48-L49 for an approach which sets both.

This allows us to write scripts chown $UID:$GID ... and not have it change in between deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant