Repository navigation
exporter/containerimage: default to oci-mediatypes=true - #6824
Merged
Merged
Conversation
This helper has not been used for some time. Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
To facilitate this change, we now fail when there is an exporter option conflict instead of implicitly setting oci-mediatypes=true. Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
This matches the documentation, which never specified behavior for empty/unknown (non-boolean) strings. We can also remove the parseBoolWithDefault helper, as this was the last consumer. Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
When support for zstd was introduced, these mediaTypes were not yet available in released versions of their respective Go packages. That is no longer the case. Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
Allow annotation and attestation exports with OCI media types enabled, fix the zstd media type map, and update integration tests for the new default. Keep Docker media types explicit where legacy behavior is under test. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Add compatibility-version 30 for the new OCI media type default while keeping version 20 pinned to the historical image exporter behavior through v0.31.x. Track omitted oci-mediatypes separately from explicit false, add v30 compatibility goldens, and document the supported compatibility versions. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
tonistiigi
force-pushed
the
oci-mediatypes
branch
from
June 3, 2026 15:52
90af8e4 to
6147354
Compare
tonistiigi
marked this pull request as ready for review
June 3, 2026 16:28
Member
Author
|
@crazy-max @neersighted Green now. This now connects with compatibliity-version. 30 is the new behavior, old versions keep using the non-oci defaults. |
crazy-max
approved these changes
Jun 4, 2026
crazy-max
left a comment
Member
There was a problem hiding this comment.
LGTM
Would need some docs follow-up (cc @dvdksn):
- https://docs.docker.com/build/exporters/#oci-media-types
- https://docs.docker.com/build/exporters/oci-docker/
Do we want follow-ups to default to true for cache exporters?
This was referenced Jun 29, 2026
3 tasks
crazy-max
added a commit
to crazy-max/docker-docs
that referenced
this pull request
Nov 23, 2026
Follow up on moby/buildkit#6824. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #6094
closes #6095
testing updated version of #6095