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

UID and GID Specification #14

Open
kylepauljohnson opened this issue Mar 18, 2021 · 3 comments
Open

UID and GID Specification #14

kylepauljohnson opened this issue Mar 18, 2021 · 3 comments

Comments

@kylepauljohnson
Copy link

Good afternoon, thanks for the work on this container. Been running it without persistence for a bit and it's worked great. Recently I have been working to get it setup to utilize the config directory so it can resume from autosave however I am having trouble configuring it to run as a proper user that has permissions to the folder.

I am running Docker from my Synology NAS and have many other containers I run which generally take PUID and GUID or UID and GID property that can be set as an environment variables to specify the user. Looking through the documentation and code it doesn't appear this container supports that.

Any chance that could be added?

@Highcooley
Copy link

Same here, this would be greatly appreciated

@duckfullstop
Copy link
Collaborator

Shouldn't be a problem to add this! I'm a little busy over the next couple days due to life stuff, but I'll see if I can get around to it next week.

(otherwise if someone wants to submit a PR, then all power to you!)

@duckfullstop duckfullstop linked a pull request Mar 31, 2021 that will close this issue
@Ultre00
Copy link

Ultre00 commented Apr 9, 2021

Same here would love this change. Unable to save now in my Synology NAS setup. Is it possible to get saves working without the PUID and GUID?

Could anyone explain why it isn't enough to just create a user called openttd with read / write permissions?

RUN chown -R openttd:openttd /config /app
Doesn't this map the openttd user to the openttd user of the volume?

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

Successfully merging a pull request may close this issue.

4 participants