I have an image (in AWS ECR) with 2 tags and I would like to remove one tag only.
I can easily remove from my local environment using:
docker rmi <REPOSITORY>:<TAG>
I would like to remove it from ECR. Any help would be appreciated.
You can delete a tag using the following command:
aws ecr batch-delete-image --repository-name <REPO NAME> --image-ids imageTag=<TAG NAME>
If you have only one tag and execute this command, it will remove the image. If you have multiple tags for the same image, specify one, and only the tag is removed.