Skip to content

manifest: accept OCI media types in Docker schema2 manifests#2973

Closed
lumincui wants to merge 1 commit into
containers:mainfrom
SoTALab-ai:support-oci-media-types-in-docker-schema2
Closed

manifest: accept OCI media types in Docker schema2 manifests#2973
lumincui wants to merge 1 commit into
containers:mainfrom
SoTALab-ai:support-oci-media-types-in-docker-schema2

Conversation

@lumincui

@lumincui lumincui commented Jul 9, 2026

Copy link
Copy Markdown

What

Accept OCI image config and layer media types when validating Docker schema 2 manifests.

This allows Schema2FromManifest / SupportedSchema2MediaType to handle Docker schema2 manifests with OCI descriptor media types, including application/vnd.oci.image.layer.v1.tar+gzip.

Why

Some registries return Docker schema2 manifests whose config/layer descriptors use OCI media types. Today those fail before copy/inspection can proceed, for example through skopeo copy --all:

unsupported docker v2s2 media type: "application/vnd.oci.image.layer.v1.tar+gzip"

Fixes #2972.

Testing

  • Added TestSupportedSchema2MediaType coverage for OCI config/layer media types.
  • Ran gofmt through golang:1.24 container.
  • Attempted go test ./manifest -run TestSupportedSchema2MediaType -count=1 -v in golang:1.24, but the container timed out while downloading Go dependencies before reaching test execution in this environment.
  • Verified the same code path in a patched skopeo v1.23.0 build during registry mirroring: manifests with OCI layer media types copied successfully after this change.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

This repository has been migrated to https://github.com/containers/container-libs. Please open your PR there.

@lumincui

lumincui commented Jul 9, 2026

Copy link
Copy Markdown
Author

This repository has migrated to containers/container-libs, so I moved this PR to podman-container-tools/container-libs#978.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker schema2 manifests with OCI layer media types are rejected

1 participant