Getting Unauthorized: Authentication Required When Trying to Push Into External Exposed Image Registry

Solution Verified - Updated -

Issue

[root@localhost ~]# docker login -u example -p somepassword registry.apps.example.com
Login Succeeded
[root@localhost ~]#
[root@localhost ~]# docker push registry.apps.example.com/openshift/test
22j4zia2lk2nm: Pushing [==================================================>] 8.192 kB
. . .
a23gfzs1c363a: Waiting
unauthorized: authentication required
  • Pushing into exposed registry in a separate cluster fails

Environment

  • Red Hat OpenShift Container Platform
    • 3.6

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