
Problem with PUID and PGID after update on container
Hi, i just updated a container and now it can't start and the logs just says:
PUID and PGID variables must be set when container is run as root.
The dockerfile sets the PUID and PGID variables based on my user id (I pressume)
-e PUID=$(id -u) \
-e PGID=$(id -g) \
When I check my user id in the terminal it comes back as 0 because I'm logged in as root(?).
Anyone got a tip on how I can get this going?
I have little knowledge about docker and my google fu is failing me.
Sort by:
Best
Open comment sort options
Best
Top
New
Controversial
Old
Q&A
You’re building the image yourself, not using a hosted one?
Without more information, I’d assume it sets the default user:group to whatever is used to build the image.
Usually with container supporting this, you override the defaults by adding environment variables PUID/PGID. Default for unraid is to use 99:100 (nobody:users).
Hopefully, the solution for you is to edit the configuration for the container, click
Add another Path, Port ….
->Variable
from the dropdown. Name: PUID (or anything really) Key: PUID Value:99. Then do the same, and add Key: PGID Value: 100Hi, I'm not building it myself i just read the docker readme to get an understanding if it sets the puid/pgid. It is called "airdcpp" from the app store in unraid. Also in the readme it says I need to set puid/pgid " Must be >= 101." which I have tried. I have both changed the UID and GID to above 101 and also set new variables named PUID/PGID above 100 as well but did not make any difference.
link: https://hub.docker.com/r/gangefors/airdcpp-webclient/