-
Notifications
You must be signed in to change notification settings - Fork 20
How to push docker images to openshift internal registry and create application from it.
Chakradhar Rao Jonagam edited this page Oct 4, 2016
·
3 revisions
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
- push the tagged image to internal registry
-
oc get svc -n default | grep registry#172.30.43.173
oc new-project test
-
docker tag localimage 172.30.43.173:5000/test/localimage#WTmRhkFBQS9WD1PzzUDpp_JPygROAOMZa8R67j586P8
docker login -p WTmRhkFBQS9WD1PzzUDpp_JPygROAOMZa8R67j586P8 -e unused -u unused 172.30.43.173:5000
docker push 172.30.43.173:5000/test/localimage
oc new-app test/localimage --name=myapp