-
Notifications
You must be signed in to change notification settings - Fork 4.3k
put-image fails when image already exists on repository with tag and is immutable #9328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @daveisfera , thanks for reaching out. I see you have already files a case for this request with AWS Team -aws/containers-roadmap#2380 as suggested by our teammember earlier.. So IMO if you need any updates, you would have to follow up there. EDIT: A workaround is also suggested here. |
closing this as duplicate as its just a follow up. Request you to post comments on the original issue filed with AWS team. Thanks |
This issue is now closed. Comments on closed issues are hard for our team to see. |
That issue is asking that ECR allow those requests when the content is identical and there has been no response. |
Hi @daveisfera , I tried to repro the issue with
docker push <aws_account_id>.dkr.ecr..amazonaws.com/my-repo:latest
![]() Let me know if its helpful. I see this issue is open but there has been no action so I would consult with the team on the next steps. will share updates soon. |
Here's the commands I run that run into the error with
|
Describe the bug
Following up on this because currently
put-image
will error out when a build doesn't change the built image and the tag already exists with that image:aws/aws-sdk#750
Regression Issue
Expected Behavior
Have an option to ignore this or an exit code to indicate this issue, because it appears that currently the status code for all errors is
254
so there's no way to tell the difference between a "safe"/expected error and an actual problemCurrent Behavior
Errors out with the same status code as all other errors
Reproduction Steps
Possible Solution
Flag to ignore this error or have different status codes to indicate how it failed
Additional Information/Context
No response
CLI version used
aws-cli/2.24.7
Environment details (OS name and version, etc.)
Python/3.12.9 Darwin/24.3.0 source/x86_64
The text was updated successfully, but these errors were encountered: