Replies: 2 comments 9 replies
-
I guess it does look hardcoded to 1000:1000 Is this intentional? Is there a reason I shouldn't/couldn't change this to 1001:1001 for my case? https://github.com/mbround18/valheim-docker/blob/main/src/scripts/entrypoint.sh
|
Beta Was this translation helpful? Give feedback.
5 replies
-
So that seems to work, but I was trying avoid having my user account used at all (since it has elevated privileges).
Ideally it would be valheim valheim since valheim is my non-privileged account just for this container. What would happen if you hardcoded the PUID=1001? Does it "steam" have to be 1000 to work? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running into weird permission issues if I try to pass in the PUID and PGID Environment variables to the container. It appears as though the PUID is being passed properly but the PGID might not be.
Here is my compose file:
My server has my personal user at 1000:1000 and this valheim user at 1001:1001
if I do docker-compose up (with or without --build) it starts to launch but I get lots of permission denied errors:
If I run this, with my valheim (1001:1001) user without any PUID or PGID args it creates a structure where the directory and files are all 1000:1000 aka my regular user account owns them. BUT IT WORKS*. I just want all of these files/directories and everything to be owned by my valheim 'service' account that I created for additional security.
I think the steam user inside the container is running at 1000:1000 by default and it seems to not like it if you pass the variables.
What am I doing wrong? I am sure its something super dumb on my end, but maybe its a bug?
For what its worth I search for an answer, saw this #18 and #23 but nothing in there seemed to point me in the right direction other than it seems like it was fixed years ago?
Beta Was this translation helpful? Give feedback.
All reactions