Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

registry URL and process for installing an external docker image on openshift online (v3)

Tags:

openshift

I am using the Openshift Online platform. I am trying to build a custom docker image locally (on my mac) and push it to the registry of my project on Openshift online.

I am unable to do that. Can someone please advise what the registry URL should be?

I have tried using the following:

registry.starter-us-east-1.openshift.com
registry.access.redhat.com

The full command I am trying to use to login is below however I am not getting a response. The screen just waits.

docker login -u username -e any_email_address -p token_value registry_service_host:port

My intent, after completing above, is to then try and push the image that I have built locally.

Any advice on the above or else alternate approaches would be appreciated. Thank you.

like image 367
Atlee77 Avatar asked Sep 18 '25 23:09

Atlee77


2 Answers

For to discover Openshift Online URL registry, use the following steps bellow:

enter image description here

  1. After you clicked "Copy Login Command" buttom, you copy oc login command;
  2. Run oc login command in the terminal;
  3. Afterwards login, run oc registry info in the terminal.
like image 148
Marcelo Vinicius Avatar answered Sep 23 '25 06:09

Marcelo Vinicius


The registry is at --> registry.<cluster-id>.openshift.com.

For starter tier US East region, the cluster id is --> starter-us-east-1.

So, the registry can be found at --> registry.starter-us-east-1.openshift.com.

Once you know the docker registry endpoint, you can follow the instructions at:

  • https://docs.openshift.com/online/dev_guide/managing_images.html#accessing-the-internal-registry

to login and pull/push images from/to the registry.

In short, use:

docker login -u `oc whoami` -e `oc whoami` -p `oc whoami -t` \
    https://registry.starter-us-east-1.openshift.com

For future reference, the details for accessing the registry will appear in the About page from the help drop down menu, albeit right now for Online that change hasn't managed to propogate into production, although already visible in newer versions of OpenShift.

like image 28
Graham Dumpleton Avatar answered Sep 23 '25 05:09

Graham Dumpleton