How to check if ECR image exists by URI?

0

How can I check if an image exists in ECR using AWS CLI given its URI like:

xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/ai-api:2022-08-25T23-10-58-main

?

I've tried describe-images with parameters --image-ids, but it can only accept --image-ids imageDigest=string,imageTag=string ..., no URI option.

Do you have a script that I can check if the ECR image exists by URI?

preguntada hace 2 años1524 visualizaciones
1 Respuesta
0
Respuesta aceptada

Trying to use AWS CLI is a wrong way.

We should use docker manifest inspect to check whether the image exists.

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas