Skip to main content Problem with PUID and PGID after update on container : r/unRAID
r/unRAID icon
Go to unRAID
•

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.

The everything app, for work. Get everyone working in a single platform designed to manage any type of work.
Thumbnail image: The everything app, for work. Get everyone working in a single platform designed to manage any type of work.
Sort by:
Best
Open comment sort options

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: 100

Hi, 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/

More replies
More replies