-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Add PUID and PGID to palworld docker image. #16
Conversation
Oops, forgot the readme and example compose file! |
Thank you @fryfrog very helpful :) |
I would like to revisit this, as this means that the main process of the container can only be started as root, to be able to
If backup systems are the reason for this change, I would question these backup solutions, as an external system, that just copies files, can (in most cases) not be sure that those files are not currently being accessed or written to. Please let me know, what your opinion on this is, maybe I'm missing something. |
I think you are saying it'd be better to run the whole container as one user via Docker's own I would make a new github issue and discuss it, maybe put up a pull request that does it? I'm a big fan of not running containers as |
And to be clear, before this change it was hard coded doing things as either |
My proposal wouldn't even work with |
Sure, that is what I mean right? Making this a non- All possible, just... makes setting up the image a little harder and more technical for people. |
That's why I dropped the whole change-uid stuff again. For me UID 1000 is perfectly fine and I have no need to change it (because I change the file permissions on the mounted volume). My main goal is to have an Image that contains a |
If you set |
From an application perspective, the behaviour is the same. The main difference is this:
Mine, with removed
In the currently published image, |
Ah, I got ya! That's what you'd get from a proper |
Exactly, but with |
Yeah, exactly! A proper I bet you could make an image that works in both ways by simply checking if the uid/gid is |
I'm sure we could. I personally don't yet understand the need to change from I think I will maintain my fork for myself for the time being, until this is something that finds it's way back here 😃 Thanks @fryfrog for the discussion, I appreciate your effort! |
Really? This one is dead easy to explain. My personal user has the uid:gid 1000:1000 on all my hosts because it was the first one to be created. Why should anyone have to architect their system uid/gids around one docker image that hard coded it to |
Add PUID and PGID to palworld docker image.
This is pretty simple. It checks that the PUID and PGID aren't
0
(root
) and then just sets thesteam
user and group to them. The default is1000:1000
to match the current behavior.Switched to
bash
for the[[ ]]
styleif
.Should resolve #15.