Skip to content

run on openshift 3.6, user does not exist #359

Closed

Description

@walnut-tom

initdb: could not look up effective user ID 1000360000: user does not exist

Activity

  1. yosifkit commented on Oct 18, 2017

    @yosifkit
    Member

    Yes, this is noted in the documentation.

    As of #253, this image supports running as a (mostly) arbitrary user via --user on docker run.

    The main caveat to note is that postgres doesn't care what UID it runs as (as long as the owner of /var/lib/postgresql/data matches), but initdb does care (and needs the user to exist in /etc/passwd)

    - https://github.com/docker-library/docs/tree/2c7f3a40774774389a4a372ef21ccd34ea53d551/postgres#arbitrary---user-notes

  2. mkjpryor-stfc commented on Apr 3, 2018

    @mkjpryor-stfc

    @yosifkit: Just because it is noted in the documentation doesn't mean that it is OK.

    This is a major pain when running on OpenShift, and could be fixed by a simple use of nss_wrapper.

  3. tianon commented on May 24, 2018

    @tianon
    Member

    Not sure how I missed this before, but https://cwrap.org/nss_wrapper.html is the first sane solution I've seen proposed to this OpenShift-specific problem -- essentially faking software that cares to think the user we're running as exists in /etc/passwd is pretty smart IMO.

    I'm reopening so we can explore this solution more.

  4. reopened this on May 24, 2018
  5. tianon commented on May 24, 2018

    @tianon
    Member

    https://bugs.alpinelinux.org/issues/6710 makes me sad, but https://packages.debian.org/source/stretch/nss-wrapper is a good sign! (so at least Debian-based images using this would be pretty trivial)

  6. tianon commented on May 24, 2018

    @tianon
    Member

    Success! #448

  7. rgov commented on Jun 1, 2019

    @rgov

    If, like me, you wound up here because your Postgres container would not run on OpenShift: don't use the -alpine variant, as it still does not contain the nss-wrapper tool that is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions