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

Automatically set UID and GID in container #4

Merged
merged 3 commits into from
Sep 7, 2022
Merged

Automatically set UID and GID in container #4

merged 3 commits into from
Sep 7, 2022

Conversation

mstrelan
Copy link
Owner

@mstrelan mstrelan commented Sep 7, 2022

Out of the box the containers run with UID=1000, GID=1000. This works well if this matches the UID and GID of the user on the host, however leads to file ownership problems for other users.

This PR configures env vars to set a matching UID and GID, and builds the php containers using these build args.

@mstrelan mstrelan merged commit 7600f54 into main Sep 7, 2022
@mstrelan mstrelan deleted the uid branch September 7, 2022 23:05
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

Successfully merging this pull request may close these issues.

1 participant