Openshift: use nginx official image instead of one from OC registry

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

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;"]

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

oc start-build somelabel –from-dir . –follow -n someprojectname

Openshift uses an image from RedHat registry instead of the official

Step 1/7 : FROM[email protected]:ba3352b9f577e80cc5bd6805f86d0cee5965b3b6caf26c10e84f54b6b33178e5

Is it possible to “force” usage from the Docker Hub (

Source: StackOverflow