[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Openshift Online Restriction Problem



Have you tried shelling into the pod and then doing a whoami?
Just being extra sure ;)

But that is the extent of my help. I don't know how to query to see what restriction you are hitting up against

On Wed, Apr 12, 2017 at 9:16 AM, Barış Aydınöz <baris hazelcast com> wrote:

No, we switch the user before running CMD

Dockerfile:

ENV USER_NAME=hazelcast
ENV USER_UID=10001

…..

RUN useradd -l -u $USER_UID -r -g 0 -d $HZ_HOME -s /sbin/nologin -c "${USER_UID} application user" $USER_NAME
…..

USER $USER_UID

EXPOSE 5701
CMD ["/bin/sh", "-c", "./start.sh"]



On 12 Apr 2017, at 18:11, Steven Pousty <scitronp redhat com> wrote:

Do you run your container as root?

On Wed, Apr 12, 2017 at 6:04 AM, Barış Aydınöz <baris hazelcast com> wrote:
Hello,

We use a image that we build on Docker 1.13.1 on MacOS. Regarding image works with no problem on OCP platform, which comes as a Vagrant box from CDK 2.4

Whereas, we have a restriction problem on Openshift Online. Below I share error log from Openshift Online.


<Mail Attachment.png>

$ oc describe pod hazelcast-cluster-rc-hz-tp7zs-dey84 | grep Security
Security Policy: restricted


Could you please advice?

Thanks and kind regards
Baris

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]