Assuming you have the OCP (openshift container platform) cluster ready and the user has image push permissions on a namespace (ex:- dev)
TL;DR
- Grab the Cluster IP Address of internal docker registry
- tag the local image to internal docker registry
- grab the auth token and login to inter docker registry