https://bugzilla.redhat.com/show_bug.cgi?id=1119849
Bug ID: 1119849
Summary: su - postgres Results in System Error inside Fedora
20/rawhide containers
Product: Fedora
Version: 20
Component: docker-io
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected], [email protected],
[email protected]
Description of problem:
Attempting to use postgresql in a docker container, errors occur due to an
issue with using su to the postgres user.
Looks similar to: https://bugzilla.redhat.com/show_bug.cgi?id=1098120#c15 but
the fix for libselinux should have been in Fedora images long ago.
Version-Release number of selected component (if applicable):
On host:
(root@lenovo ~) $ rpm -qa | grep docker
docker-registry-0.7.1-2.fc20.noarch
docker-io-1.0.0-6.fc20.x86_64
(root@lenovo ~) $ getenforce
Disabled
(root@lenovo ~) $ rpm -qa | grep libselinux
libselinux-python-2.2.1-6.fc20.x86_64
libselinux-utils-2.2.1-6.fc20.x86_64
libselinux-2.2.1-6.fc20.x86_64
libselinux-devel-2.2.1-6.fc20.x86_64
(root@lenovo ~) $
How reproducible: Very.
Steps to Reproduce:
Build the following Dockerfile on a fully updated Fedora 20 system:
FROM fedora:20
MAINTAINER Devan Goodwin <[email protected]>
RUN yum -y update
RUN yum -y install postgresql postgresql-server
RUN su - postgres -c "ls /"
CMD ["/bin/bash"]
Actual results:
Complete!
---> 7b3287af76e9
Removing intermediate container d869af784195
Step 4 : RUN su - postgres -c "ls /"
---> Running in 72da359c2576
su: System error
2014/07/15 12:57:45 The command [/bin/sh -c su - postgres -c "ls /"] returned a
non-zero code: 1
Expected results:
The su error is blocking use of postgres in a number of ways starting with
initdb phase.
Additional info:
postgres user does exist at this point.
Problem also occurs if building off fedora:rawhide image.
Similar failures can be seen if you attempt to build the fedora-cloud
Postgresql container:
https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/postgres I
believe these boil down to the same issue however.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang