You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the RegistryServiceAPI to inspect some images. The RegistryServiceAPI works just fine for any image (at any region) expect for images in the global icr.io registry.
We tried solving this by unsetting the region or setting the region to "GLOBAL" but it still doesn't work.
We still get an error when we inspect an image in the icr.io or private.icr.io registry.
The error received is something like :
{
"code": "CRI0106E",
"message": "The registry in the supplied image name doesn't match the registry that the request was sent to. Correct the image name, and try again.",
"request-id": "61373bca-f318-4066-9fb7-eba642dcd3b3"
}
We know for sure that the image name is correct and the image is already in the registry and is accessible to the given API key - as we run the ibmcloud cr image-inspect to inspect the exact same image and it doesn't throw any error.
Login to ibmcloud and Inspect the image with ibmcloud cr image-inspect .. it will work just fine.
Try to inspect the exact same image with the bluemix-go api - you will get an error similar to the one in the description.
Thanks in advance for your support.
The text was updated successfully, but these errors were encountered:
almasry
changed the title
BUG : registryv1.RegistryServiceAPI // Images().InspectImage() throws an error if the inspected is in the global icr.io image registry
BUG : registryv1.RegistryServiceAPI // Images().InspectImage() throws an error if the inspected image is in the global icr.io image registry
Dec 9, 2021
@almasry We prefer to use the service specific go sdk than bluemix-go because the priority of issues on this project is very less...Can you please use https://github.com/IBM/container-registry-go-sdk this SDK since its handled by respective service team and will always be up to date
Hello Bluemix go team,
We are using the RegistryServiceAPI to inspect some images. The RegistryServiceAPI works just fine for any image (at any region) expect for images in the global
icr.io
registry.We tried solving this by unsetting the region or setting the region to "GLOBAL" but it still doesn't work.
We still get an error when we inspect an image in the
icr.io
orprivate.icr.io
registry.The error received is something like :
We know for sure that the image name is correct and the image is already in the registry and is accessible to the given API key - as we run the
ibmcloud cr image-inspect
to inspect the exact same image and it doesn't throw any error.The output is something like :
Inspecting image 'icr.io/obs/team-name/image:1.11.1'...
OK
How to reproduce this bug ?
Create an image in the global icr.io registry
Login to
ibmcloud
and Inspect the image withibmcloud cr image-inspect
.. it will work just fine.Try to inspect the exact same image with the bluemix-go api - you will get an error similar to the one in the description.
Thanks in advance for your support.
The text was updated successfully, but these errors were encountered: