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
Default image output from buildx v0.10 cannot run on Google Cloud Run or AWS Lambda #1533
Comments
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Builds were failing with the error: > OCI index found, but Accept header does not support OCI indexes The suggested fix is to temporarily disable provenance until better support for OCI indexes arrives. docker/buildx#1533
Cloud Run PM here, we received many reports about this. At the moment, Cloud Run doesn't support multi architecture images. We were tracking this work item, but we do not have an delivery date to communicate yet. |
You gotta be kidding me. See: docker/buildx#1533
You gotta be kidding me. See: docker/buildx#1533
You gotta be kidding me. See: docker/buildx#1533
@steren If you are Cloud Run PM then I have a request that can help save few hours of debugging for everyone. Would be nice to return proper error message when we try to use multi-platform images with cloud run instead of returning
It clearly exist in artifact registry since I choose it from select list when creating cloud run service. Message like:
Would probably reduce debug time to 15 min instead of 6h. Thanks |
@steren and buildx team, Cloud Run supports SLSA Build level 3 through provenance, see https://cloud.google.com/software-supply-chain-security/docs/sds/deploy-run-view-security-insights#build |
compatibility issues with google cloud and provenance. docker/buildx#1533
Cloud Run was supporting the old Docker "fat manifest" manifest lists It just doesn't support the new OCI format |
I would also note that the Docker documentation seemingly isn't up to date on covering this change: https://docs.docker.com/registry/spec/manifest-v2-2/ |
I'm not sure, but I'm on |
Thanks for your patience Cloud Run now supports multi-architecture images as long as the manifest list includes We now expect buildx images built with default settings to deploy to Cloud Run, please let us know here if you still experience issues. |
Disable provenance attestation functionality until issue docker/buildx#1533 fix https://github.com/docker/build-push-action/releases/tag/v4.0.0 Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
I tested building an image with Doing the same while reverting to |
Try pushing to Artifact Registry instead of Container Registry |
Indeed it seems to work. Thanks. |
docker/buildx#1533 our ecr repository has multiple shards of different images and it's hard to tell when vulnerability scans are accurate or not when the images are in multiple pieces like they are now. also bumps other action versions to more current versions
As of Buildx 0.10, images are built with provenance -- this behavior is opt-out, and can be disabled with
--provenance=false
if using the buildx build cli, orprovenance: false
if using docker/build-push-action.Images built with these default attestations that use the attestation storage from buildkit cannot be run on Google Cloud Run or AWS Lambda. While both Cloud Run and Lambda support the OCI format, they do not support multi-platform images.
From Google Cloud Run docs (emphasis mine):
From Lambda docs (emphasis mine):
Ideally, GCR and Lambda should support multi-platform images, and detect the current platform from the Docker manifest list / OCI index.
As a temporary workaround (in order of preference):
--provenance=false
on buildx build, or setprovenance: false
on docker/build-push-actionThe text was updated successfully, but these errors were encountered: