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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ