Failed to push image: unauthorized: authentication required when push to OpenShift internal docker registry

Solution Unverified - Updated -

Issue

  • When attempting to push an image to an openshift internal registry, the following error messages are seen in the build logs.
... omitted ...
Successfully built aaaabbbbcccc
Pushing image docker-registry.default.svc:5000/example/example:latest ...
error: Unable to update build status: resource name may not be empty
Registry server Address:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: Unable to update build status: resource name may not be empty
error: build error: Failed to push image: unauthorized: authentication required

Environment

  • OpenShift Container Platform (OCP)
    • 3.7

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