Create an imageStream returns unauthorized: Please login to the Red Hat Registry - Openshift Container Platform 3.11

Solution Verified - Updated -

Issue

  • Executed the oc import-image command in a namespace different than openshift returns the error:
$ oc import-image rhscl/mysql-80-rhel7 --from=registry.redhat.io/rhscl/mysql-80-rhel7 --confirm

error: tag latest failed: Internal error occurred: Get https://registry.redhat.io/v2/rhscl/mysql-80-rhel7/manifests/latest: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/articles/3399531
imagestream.image.openshift.io/mysql-80-rhel7 imported with errors

Environment

  • Openshift Container Platform 3.11
  • registry.redhat.io

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content