Failed to push image: unauthorized: authentication required when push to OpenShift internal docker registry
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
