-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failure pushing multi-arch images to Private AWS ECR with tag immutability enabled #2004
Comments
@Vlaaaaaaad Can you try the following permutations for the buildx step please:
|
@crazy-max sure! Here's Unfortunately, the same error is reported. Let me know if the changes are not in the right place and I can re-test 🙂 |
@Vlaaaaaaad Ok thanks for your feedback. There is something odd and I think it's a scope issue on ECR. We have e2e tests with several registries to detect if there is something wrong early. And everything looks fine atm with our private ECR. Can you check if the the requirement to push to ECR with AmazonEC2ContainerRegistryPowerUser managed policy is ok? Thanks. EDIT: Nevermind works fine with containerd. Must be something else. |
@Vlaaaaaaad Wonder if this is not linked to a specific region. Can you disclose it? WDYT @jtoberon? |
@crazy-max hm... does your test ECR repo have "Immutable tags" enabled? I could not find a definition for the repo itself. The docker/build-push-action action works great on non-immutable repos. The repo is in
I can test another region if you think it would help! |
@omieomye ^^^ |
I'm surprised you see it working in containerd. This has been a known error of containerd pusher that it repushes the tag multiple times. Maybe something has changed or containerd case is not quite the same. |
Looking at the code I think containerd does a trick on pushing by tag and digest together. In that case tags are ignored for objects where digest does not match. I think we should be able to do the same thing. |
Hi,
As per the instructions in TROUBLESHOOTING.md for the docker/build-push-action GitHub Action, I am opening an issue here. If this is not the right place, please let me know. This could be an issue with the ECR implementation of manifest lists.
TL;DR, from Twitter:
Pushing a multi-arch (AMD, ARM) image to a private AWS ECR repository fails with
unexpected status: 400 Bad Request
. Pushing the same image to ECR, using containerd works.I created an example repository to show the issue and the relevant config/logs. You can see the GitHub Action failing here and you can see containerd working here.
Relevant logs for the failure:
Funnily enough, if I go to the ECR repository and list the images, there is something pushed for both:
The text was updated successfully, but these errors were encountered: