Closed DrissiReda closed 1 year ago
While not really getting what you are doing and why, UID is changed using usermod -u
command, GUID - groupmod -g
docker run -u
doesn't create or change anything. It just runs a container with the given command as a given user
With all that being said, you better not change postgres uid, as it breaks all the configured permissions/ownerships (unless you want to change them all manually).
Is it possible to change user ID for the spilo image dynamically?
I tried:
But it doesn't work.
I tried modifying the
Dockerfile
to change postgres user ID manually, and that works. But it doesn't give me the ability to change postgres user ID at run time.I added this line:
Here: https://github.com/zalando/spilo/blob/master/postgres-appliance/Dockerfile#L35
Is there any way to achieve that?
This is the error I'm getting: