IBM Cloud Docs
Why do I get an error when I'm restoring an image in Container Registry?

Why do I get an error when I'm restoring an image in Container Registry?

You want to restore an image from the IBM Cloud® Container Registry trash, but you get a 409 error: CRT0500E The tagged image already exists. You can restore this image by using the digest.

You receive the following error message when you run the ibmcloud cr image-restore command: CRT0500E The tagged image already exists. You can restore this image by using the digest. For more information, see troubleshooting: https://cloud.ibm.com/docs/Registry?topic=Registry-ts_index#ts_image_restore

An image with the same name exists in your live repository. You can't overwrite a live image with an image that is in the trash.

Remove the tagA user-defined identifier attached to a grouping of resources that are contained in an account. Tags are visible account-wide. from the existing image in your live repository by running the ibmcloud cr image-untag command. You can then restore the required image from the trash by running the ibmcloud cr image-restore command with the option <repo>@<digest>, which restores the digest and its tags to the live repository. For more information, see Restoring images by digest.