Just recently got an unique error, this happens when my application is pulling an image within a different Openshift namespace. In this example, im creating my application in “xyz-project” and try to pull image from “abc-project”. Here’s the complete error detail,
Failed to pull image "image-registry.openshift-image-registry.svc:5000/abc-project/image01@sha256:xxxxxxxxxxxx": rpc error: code = Unknown desc = Error reading manifest sha256:xxxxxxxxxxxx in image-registry.openshift-image-registry.svc:5000/abc-project/image01: unauthorized: authentication required
Solution for this is quite easy, actually we need to give a specific access right in order for “xyz-project” to be able to pull image from “abc-project”.
oc policy add-role-to-user system:image-puller system:serviceaccount:xyz-project:default -n abc-project
Hope it helps.