Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

a. login to openshift with CLI ( Download openshift client(oc) from Download link and install) 

oc login ecpass-dev.cdc.gov


b. Switch to your openshift project 

oc project your_project_name


c. Create secret in openshift for docker registry

oc create secret docker-registry imagehub --docker-username=nexus_username --docker-password=nuxus_password --docker-server=imagehub.cdc.gov:5989 --docker-email=emailid@cdc.gov


d. Link the above secret to default, deployer and builder service accounts 

oc secret link default imagehub --for=pull
oc secret link deployer imagehub --for=pull
oc secret link builder imagehub --for=pull


e. Import image by running command: 

oc import-image helloworld --from=imagehub.cdc.gov:8123 --confirm


  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.