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
Discussion options

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

Comment options

You must be logged in to vote
1 reply
@alaugks
Comment options

Comment options

You must be logged in to vote
3 replies
@alaugks
Comment options

@1mono2
Comment options

@jensjoy
Comment options

Answer selected by crazy-max
Comment options

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