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?

1개 답변
0
수락된 답변

Trying to use AWS CLI is a wrong way.

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

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인