Skip to content

simplify running as arbitrary user #709

Closed
@DrPyser

Description

@DrPyser

Hi.

Currently, running the container as an arbitrary user is pretty complicated, involving mounting a customized /etc/passwd and bindmounting any volume the postgres user might need to access so that permissions can be made to match(e.g. /var/run/postgresql must use a bindmount with the right permissions for the arbitrary user).

It would be nice if the entrypoint of the image could make this easier. For example, by passing POSTGRESQL_USER_ID and POSTGRESQL_GROUP_ID environment variables, the entrypoint could take care of changing the postgres uid and gid(using usermod) and changing permissions of relevant directories. This would help reduce deployment complexity for those who require that the container be run with a specific user(e.g. to make data bindmounts accessible on the host).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions