400 Bad Request when pushing manifest to GCR using v1.0.2
See original GitHub issueBehaviour
Steps to reproduce this issue
- Use docker/setup-buildx-action@v1.0.2 to set up docker buildx
- Push to GCR
Expected behaviour
Tell us what should happen It should push correctly to GCR as with v1.0.1
Actual behaviour
Tell us what happens instead I get this error
docker/setup-buildx-action#24 pushing manifest for us.gcr.io/REDACTED docker/setup-buildx-action#24 pushing manifest for us.gcr.io/REDACTED 0.2s done docker/setup-buildx-action#24 ERROR: failed commit on ref “manifest-sha256:013abc4ac51e93f9aca0650ba16921c3794ca76a69d2aad7a8bb2ff20122b7c0”: unexpected status: 400 Bad Request
exporting to image:
failed to solve: rpc error: code = Unknown desc = failed commit on ref “manifest-sha256:013abc4ac51e93f9aca0650ba16921c3794ca76a69d2aad7a8bb2ff20122b7c0”: unexpected status: 400 Bad Request Error: The process ‘/usr/bin/docker’ failed with exit code 1
Configuration
- Repository URL (if public):
- Build URL (if public):
name: Workflow
env:
GCR_URL: us.gcr.io
GC_PROJECT_ID: ID_HERE
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.0.2
- name: Login to GCR
uses: docker/login-action@v1
with:
registry: ${{ env.GCR_URL }}
username: _json_key
password: SECRET_HERE
- name: Build and push docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile
tags: ${{ env.GCR_URL }}/${{ env.GC_PROJECT_ID }}/IMAGE_TAG_HERE
Logs
Can’t really post the logs since it’s for a private repository
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Unable to push to Google Container Registry - Bad request
The issue was that the tag has to contain the project name: gcr.io/project_name/tre-dock/pytest.
Read more >Troubleshooting | Container Registry documentation
Bad Request error when pushing an image. When the Cloud Storage API is in the Deny policy list for the constraint constraints/gcp.restrictNonCmekServices ,...
Read more >Binderhub install gives 400 error (bad request)
I'm trying to install Binderhub v0.2.0-b593363 and I get a 400 error. ... any comments in starting with < that may be causing...
Read more >Change log for 4.8.53
... Fix github build failing because of wrong docker hub registry name #1016; Build and push multi-arch/os (amazon and windows, no debian) image...
Read more >Knowledge Base - JFrog
ARTIFACTORY: How to Resolve a 400 Bad Request Error When Trying to Download ... Pull Fails with a '500 Binary provider has no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@akalineskou
Ok transfer back here then. So it looks like the latest buildkit container image is the issue here. Can you try with:
cc. @tonistiigi
@crazy-max I have the same issue.
I tested your proposed solution and it helped me.