Skip to content

Push to ECR registry fails with "Error: buildx failed with: ERROR: failed to solve: failed to push ** 403 Forbidden" #983

Closed Answered by Bozydarek
nivetaiyer asked this question in Q&A

You must be logged in to vote

Today I stumbled upon the same issue. The docker buildx build … --push command failed with the same error message (unexpected status from HEAD request to <URL>: 403 Forbidden). But docker push was working uninterrupted. It turns out that buildix required one additional AWS ECR permission - ecr:BatchGetImage. 🙃

Replies: 3 comments 4 replies

You must be logged in to vote
1 reply
@alaugks

You must be logged in to vote
3 replies
@alaugks

@1mono2

@jensjoy

Answer selected by crazy-max

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants