You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buildx 0.10.0 giving additional manifest to docker image? #1507
Build command supports new flags --attest and shorthands --sbom and --provenance for adding attestations for your current build. --attest type=sbom or --sbom=true will generate SBOM (Software Bill of Materials) attestation for your build result in SPDX format. --attest type=provenance or --provenance=true will generate SLSA provenance attestation for your build result with information about how the build was performed. When creating OCI images a minimal provenance attestation is included with the image by default. This feature requires BuildKit v0.11.0+. Read more about advanced SBOM options from BuildKit docs. Attestations from buildx #1412buildflags: error on duplicate attest field #1475
Named contexts with --build-context now support oci-layout:// protocol for initializing the context with a value of a local OCI layout directory. E.g. --build-context stagename=oci-layout://path/to/dir. This feature requires BuildKit v0.11.0+ and Dockerfile 1.5.0+. build: refactor reference parsing for oci image layouts #1456
I think one of the notable somehow create some unknown manifest?
I tried BUILDX_GIT_INFO=0 but doesnt affect. My question is, what is the correct way to disable it?
we tried binfmt_misc but eventually give up this way as some image build time is too long and can't accept, so now we build different image on correspondence instance, and in the last step to create manifest, looks like --provenance=false is better for our usecase
If you're building using buildx, it makes sense to do the merge using it as well - specifically it properly handles merging indexes correctly. I think for your use case, it should be a drop-in replacement.
Activity
debu99 commentedon Jan 11, 2023
i got null manifest push
crazy-max commentedon Jan 11, 2023
Looks related to #1509 (comment)
jedevc commentedon Jan 11, 2023
This is the new provenance feature, which is enabled by default - you can get the contents using
buildx imagetools:To disable it on build, you can explicitly set
--provenance=false. You can find out more in the docs here.debu99 commentedon Jan 11, 2023
so sad, this default value broken our pipeline which follow the page https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/, the
docker manifest create ...will failjedevc commentedon Jan 11, 2023
@debu99, thanks for the feedback 👍
The article you link to is slightly out of date at this point - while it does work, you might also be interested in being able to do multi-platform builds even more simply using buildx: https://docs.docker.com/build/building/multi-platform/
thaJeztah commentedon Jan 11, 2023
@debu99 the
docker manifestapproach is using the experimental manifest subcommands; and the blogpost was written when buildx was still in the experimental state; you may be interested in this page; https://docs.docker.com/build/building/multi-platform/ - effectively buildkit would be able to construct a multi-arch image in one go.jedevc commentedon Jan 11, 2023
@thaJeztah jinx 🎉
debu99 commentedon Jan 11, 2023
we tried
binfmt_miscbut eventually give up this way as some image build time is too long and can't accept, so now we build different image on correspondence instance, and in the last step to create manifest, looks like--provenance=falseis better for our usecasejedevc commentedon Jan 11, 2023
To merge manually, I'd recommend still using buildx:
If you're building using buildx, it makes sense to do the merge using it as well - specifically it properly handles merging indexes correctly. I think for your use case, it should be a drop-in replacement.
@debu99, you can also do native builds using the
--platformflag - it only requires that you create a buildx builder that contains multiple nodes that you can then connect out to: https://docs.docker.com/engine/reference/commandline/buildx_create/.martadinata666 commentedon Jan 11, 2023
coming from docker/build-push-action#755, as it actions builds that may lead to different solving method.
I agree with such feature, it just caught me surprised that some
unknownshown when looking on docker hub image tags page.In my comprehension, revert to
0.9.1or add--provenance=falsewill be the solution right now.Thanks for detailed informations.
Fix: Manifest getting publish by workflow
fix release workflow: pass --provenance=false to docker build