Unable to push images into the OpenShift internal registry: "Failed to push image: unauthorized: authentication required"

Solution In Progress - Updated -

Issue

  • During a new deployment operation using commands like oc new-app, oc start-build, etc. The following error occurs when pushing images to the registry:
Pushing image docker-registry.default.svc:5000/<project>/<image>:<tag>
error: build error: Failed to push image: unauthorized: authentication required
  • The registry logs show messages like:
level=error msg="OpenShift access denied: User \"system:anonymous\" cannot update imagestreams/layers.image.openshift.io in project \"<project name>...

Environment

OpenShift 3.10
OpenShift 3.11

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