<p>I am creating an app in Origin 3.1 using my Docker image. </p>

<p>Whenever I create image new pod gets created  but it restarts again and again and finally gives status as "CrashLoopBackOff". </p>

<p>I analysed logs for pod but it gives no error, all log data is as expected for a successfully running app. Hence, not able to determine the cause.</p>

<p>I came across below link today, which says "running an application inside of a container as root still has risks, OpenShift doesn't allow you to do that by default and will instead run as an arbitrary assigned user ID."  </p>

<p><a href="https://stackoverflow.com/questions/35710965/what-is-crashloopbackoff-status-for-openshift-pods">What is CrashLoopBackOff status for openshift pods?</a> </p>

<p>Here my image is using root user only, what to do to make this work?  as logs shows no error but pod keeps restarting.</p>

<p>Could anyone please help me with this.</p>

<p>You are seeing this because whatever process your image is starting isn't a long running process and finds no TTY and the container just exits and gets restarted repeatedly, which is a "crash loop" as far as openshift is concerned.</p>

<p>Your dockerfile mentions below :</p>

<p>ENTRYPOINT ["container-entrypoint"]</p>

<p>What actually this "container-entrypoint" doing ?</p>

<p>you need to check.</p>

<p>Did you use the -p or --previous flag to oc logs to see if the logs from the previous attempt to start the pod show anything</p>
