<p>I have a Dockerfile that uses the official nginx image to serve a static website (from an Angular app)</p>

<pre><code>FROM nginx:1.17
COPY ./dist/thepath/ /usr/share/nginx/html
COPY ./nginx-custom.conf /etc/nginx/conf.d/default.conf

CMD ["nginx", "-g", "daemon off;"]
</code></pre>

<p>It works perfect when running local, via docker. But I'm trying to use it with Red Hat's Openshift (owned by the company I work for).
When I start a build</p>

<p>oc start-build somelabel --from-dir . --follow -n someprojectname</p>

<p>Openshift uses an image from RedHat registry instead of the official</p>

<blockquote>
  <p>Step 1/7 : FROM
  registry.access.redhat.com/rhscl/nginx-112-rhel7@sha256:ba3352b9f577e80cc5bd6805f86d0cee5965b3b6caf26c10e84f54b6b33178e5</p>
</blockquote>

<p>Is it possible to "force" usage from the Docker Hub (<a href="https://hub.docker.com/_/nginx" rel="nofollow noreferrer">https://hub.docker.com/_/nginx</a>)?</p>

Christian Benseler
<p>OpenShift doesn't support running containers as root user. Make sure the container that you are trying to run runs as non root user. </p>
