ErrImagePull: "unauthorized: authentication required"

Solution In Progress - Updated -

Issue

  • After I pushed my image to internal registry, I cannot use the image due to the authentication error to pull the image.
2017-10-05 12:08:49 +0800 SGT   2017-10-05 12:08:49 +0800 SGT   1         xxxx   Pod                 Warning   FailedSync   {kubelet NODE_NAME}            pod, skipping: failed to "StartContainer" for "POD_NAME" with ErrImagePull: "unauthorized: authentication required"
  • I have confirmed that it can be pulled. Why OpenShift pod failed to pull?
# docker login -u `oc whoami` -p `oc whoami -t`  172.30.200.10:5000
Login Succeeded

# docker push 172.30.200.10:5000/test-project/hello-image:latest
  ...
5bef08742407: Pushed 
latest: digest: sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122d65b77ee95 size: 1159

# docker pull 172.30.200.10:5000/test-project/hello-image:latest
Using default tag: latest
Trying to pull repository 172.30.200.10:5000/test-project/hello-image:latest ...
sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122d65xxxxxxxx: Pulling from 172.30.200.10:5000/test-project/hello-image
Digest: sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122dxxxxxxxxxx
Status: Image is up to date for 172.30.200.10:5000/test-project/hello-image:latest

Environment

  • OpenShift Container Platform
    • 3.x

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