Trying to use AWS CLI is a wrong way.
We should use
docker manifest inspect to check whether the image exists.
How to deploy ECR private image to Lightsail containersasked a month ago
How to check if ECR image exists by URI?Accepted Answerasked 22 days ago
Is there a way to upload docker image to ECR in multiple steps?asked 12 days ago
How to create an container image and deploy it to an lambda function using CDK?Accepted Answerasked 3 months ago
Unable to run ECS Task using image from ECRasked a year ago
ECR is not deleting images; how to force layer uploadasked 4 months ago
Central ECR for ECS in multiple accountsAccepted AnswerMODERATORasked 2 years ago
How to export tresained models to ECR as container imageAccepted Answerasked 22 days ago
How to replicate IF NOT EXISTS in redshiftAccepted Answerasked 6 months ago
How to ensure that the most recent version of a docker container image is being used when deploying a GreenGrass componentAccepted Answerasked 2 months ago