liuxiaoyu-git / ocp4-bm-install

16 stars 15 forks source link

Pulling OpenShift image causes authentication required error #6

Open imicer opened 4 years ago

imicer commented 4 years ago

I follow the document to check if register image can be pulled when running 7-1 section, but the error message is output as below:

[root@support data]# podman pull ${REG_DOMAIN}/${REPO_NAME}:4.3.29-jenkins
Trying to pull registry.example.internal:5000/ocp4/openshift4:4.3.29-jenkins...
  unauthorized: authentication required
Error: error pulling image "registry.example.internal:5000/ocp4/openshift4:4.3.29-jenkins": unable to pull registry.example.internal:5000/ocp4/openshift4:4.3.29-jenkins: unable to pull image: Error initializing source docker://registry.example.internal:5000/ocp4/openshift4:4.3.29-jenkins: Error reading manifest 4.3.29-jenkins in registry.example.internal:5000/ocp4/openshift4: unauthorized: authentication required

But after I tried to login register server manually, I can pull the image from register.

[root@support data]# podman login -u openshift -p redhat ${REG_DOMAIN}/${REPO_NAME}
Login Succeeded!

podman pull ${REG_DOMAIN}/${REPO_NAME}:4.3.29-jenkins
Trying to pull registry.example.internal:5000/ocp4/openshift4:4.3.29-jenkins...
Getting image source signatures
Copying blob bb0da44cdbce skipped: already exists
Copying blob e5c9533b7ed4 skipped: already exists
Copying blob 9a25c2505050 skipped: already exists
Copying blob be4744d193f3 skipped: already exists
Copying blob 387a8b21e217 [--------------------------------------] 0.0b / 0.0b
Copying config 37fbafe9d8 done
Writing manifest to image destination
Storing signatures
37fbafe9d870cdc3abb9bca9df5dd86004fba386fcccfa26b87a2ca2435fbbe4

Can you help take a look? I suspect this error is related to co/authentication, I am still blocked by this issue now! Thanks.

liuxiaoyu-git commented 4 years ago

You could omit that line and move forward.