cancel
Showing results for 
Search instead for 
Did you mean: 
  • 1,058 Views

DO288 - Unable to import-image

Hello All,

Iam trying to import image from quay.io. The logn to Quay.io has happened fine but i keep getting this error alomost everytime i do import-image.

[student@workstation trigger-builds]$ oc import-image php --from quay.io/xyza/php-73-ubi8 --confirm
error: tag latest failed: you may not have access to the container image "quay.io/xyza/php-73-ubi8:latest"
imagestream.image.openshift.io/php imported with errors

Name: php
Namespace: zzhoef-trigger-builds
Created: Less than a second ago
Labels: <none>
Annotations: openshift.io/image.dockerRepositoryCheck=2022-10-31T07:09:21Z
Image Repository: image-registry.openshift-image-registry.svc:5000/zzhoef-trigger-builds/php
Image Lookup: local=false
Unique Images: 0
Tags: 1

latest
tagged from quay.io/xyza/php-73-ubi8

! error: Import failed (Unauthorized): you may not have access to the container image "quay.io/xyza/php-73-ubi8:latest"

I have verified that Secret for Auth file from podman login is created and linked to Builder Service Account. Any ideas, folks ?

Labels (3)
0 Kudos
1 Reply
dkcbk
Flight Engineer
Flight Engineer
  • 1,041 Views

Use --format v2s1 flag when you are pushing your image to quay.

skopeo copy --format v2s1 ......

Or use podman instead of skopeo. oc import-image sholud work.

0 Kudos
Join the discussion
You must log in to join this conversation.