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 ?
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.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.