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?

已提问 2 年前1524 查看次数
1 回答
0
已接受的回答

Trying to use AWS CLI is a wrong way.

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

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则