Follow the below steps
oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
Export the internal registry to an environmental variable
export REGISTRY=<The Registry URL you get from previous Command>
Build the docker image like below
docker build -t myimage:latest .
Tag your docker image with OpenShift registry
myimage:latest
myimage:latest
myimage:latest
oc get is