How to pull images from registry.redhat.io for docker build?

Solution Unverified - Updated -

Issue

Pulling Red Hat ubi image from openshift namespace using image stream doesn't work with dockerfile build via git repository.

It shows an invalid username/password even the build process happened inside of openshift.

Environment

OpenShift Container Platform
- 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In