By default OpenShift doesnt allow containers to run using root user.

Take a look at
https://github.com/jboss-dockerfiles/keycloak/blob/master/server-openshift/Dockerfile#L9-L16
for an example of giving the permissions and setting a non-root user.

On 7 August 2018 at 21:38, <[email protected]> wrote:

> Hello,
>
> My name is Dhanashree Kulkarni. I have installed OpenShift Origin all in
> one in a Centos 7 VM running on Proxmox VE.
>
> I have built a Docker image using a Dockerfile, and created an image
> stream using that Docker image and tagged and pushed it in the Docker
> registry inside OpenShift. Now when I want to run the application using
> this created image stream, it gives me permission error.
>
> I want to run Apache Openmeetings application inside OpenShift. For that I
> have used the Dockerfile created by Maxim Solodovnik (https://github.com/
> openmeetings/openmeetings-docker). The ENTRYPOINT in the Dockerfile seems
> to create this error.
>
> **Steps Followed:**
>
>
>
> git clone https://github.com/dhanugithub/openmeetings-docker.git
>
> cd openmeetings-docker
>
> ls
>
> docker build -t om-server .
>
> docker images
>
> docker login -u openshift –p <TOKEN from web console>
> docker-registry-default.apps.x.x.x.x.nip.io
>
> oc create is om-server -n mec
>
> docker tag om-server docker-registry-default.apps.
> x.x.x.x.nip.io/mec/om-server:latest
>
> docker push docker-registry-default.apps.x.x.x.x.nip.io/mec/om-server:
> latest
>
>
>
> I am attaching the error log which I get after deploying the application.
>
> If anyone can suggest some corrections, that would be great.
>
> Thank you.
>
>
>
>
>
> Best Regards,
>
> Dhanashree Kulkarni
>
>
>
> brown-iposs GmbH
>
> Friedrich-Breuer-Straße 120
>
> 53225 Bonn
>
> Germany
>
>
>
> Fon   +49 (0) 228 299 799 80
>
> Fax   +49 (0) 228 299 799 84
>
> mailto:[email protected] <[email protected]>
>
> www.brown-iposs.eu
>
> www.facebook.com/browniposs
>
> www.facebook.com/wimap4g
>
>
>
> Directors: Dr. Bernd Schröder, Karsten Schmeling
>
> Trade register: 14385, Country court Bonn
>
> VAT-ID: DE814670174
>
>
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
>
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to