IBM Cloud Docs
Why have I got a problem when I pull an image with cosign when I use Podman in Container Registry?

Why have I got a problem when I pull an image with cosign when I use Podman in Container Registry?

You're having problems when you try to pull an image when you're using cosign with Podman in IBM Cloud® Container Registry.

You are getting the following error when you try to pull an image and you're using cosign with Podman: UNAUTHORIZED: Authorization required.

You might need to log in to cosign manually.

You can fix this problem in the following way:

Use the following command to log in to cosign, where REGISTRY is your registry and YOUR_API_KEY is your API key.

cosign login REGISTRY -u iamapikey -p YOUR_API_KEY