'oc image append' command fails with unauthorized messages

Solution Verified - Updated -


  • oc image append command fails with unauthorized messages
  • When building a custom images using the oc image append operation, it fails with below errors:
error: uploading the source layer sha256:a296da753aac5b6b8159af58d6991de11d49b378ab3d0f04fe6c2c292a33c52b failed: unable to upload layer sha256:a296da753aac5b6b8159af58d6991de11d49b378ab3d0f04fe6c2c292a33c52b to destination repository: unauthorized: authentication required
  • The command used is:
oc --loglevel=5 --v=5 image append --from default-route-openshift-image-registry.apps.suresh4.lab.pnq2.cee.redhat.com/jb-infra-build/eap72-openshift:latest --to default-route-openshift-image-registry.apps.suresh4.lab.pnq2.cee.redhat.com/jenkins/openshift-test-app-image:latest
  • Manually, the images can be pushed to the registry using podman.


  • OpenShift Container Platform 4.1

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