docker_openttd icon indicating copy to clipboard operation
docker_openttd copied to clipboard

UID and GID Specification

Open kylepauljohnson opened this issue 4 years ago • 4 comments

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?

kylepauljohnson avatar Mar 18 '21 22:03 kylepauljohnson

Same here, this would be greatly appreciated

Highcooley avatar Mar 19 '21 07:03 Highcooley

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 avatar Mar 19 '21 16:03 duckfullstop

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? https://github.com/ropenttd/docker_openttd/blob/49f64cd937e3574fced2177e65b4b367c7136e8d/Dockerfile#L79 Doesn't this map the openttd user to the openttd user of the volume?

Ultre00 avatar Apr 09 '21 20:04 Ultre00

Is there any further interest in a new PR from anyone? I can potentially take a look into doing it myself at some point, but I'm a bit busy with other goings on.

duckfullstop avatar Jan 28 '25 12:01 duckfullstop