https://bugzilla.redhat.com/show_bug.cgi?id=1098120
oarribas oarribas@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |oarribas@redhat.com
--- Comment #2 from oarribas oarribas@redhat.com --- Similar error installing postgresql in a fedora based image.
Dockerfile:
FROM fedora RUN yum install -y postgresql-server postgresql postgresql-contrib USER postgres RUN /usr/bin/initdb -D /var/lib/pgsql/data
When installing postgres, the following warnings appear: . . Installing : postgresql-server-9.3.4-1.fc20.x86_64 6/6 warning: user postgres does not exist - using root warning: group postgres does not exist - using root . . .
And when running the initdb: . . Step 3 : RUN /usr/bin/initdb -D /var/lib/pgsql/data ---> Running in 9bb388ecf911
finalize namespace setup user get supplementary groups Unable to find user postgres The command [/bin/sh -c /usr/bin/initdb -D /var/lib/pgsql/data] returned a non-zero code: 1 . .