containerd / accelerated-container-image

A production-ready remote container image format (overlaybd) and snapshotter based on block-device.
Apache License 2.0
409 stars 75 forks source link

fix error MediaType when get dup manifest from db #308

Closed fourierrr closed 1 month ago

fourierrr commented 1 month ago

What this PR does / why we need it: When re-converting overlaybd image, the mediaType of the manifest read from the database should be "application/vnd.docker.distribution.manifest.v2+json", but it is incorrectly set to "application/vnd.docker.image.rootfs.diff.tar".

note: This issue only occurs in the case of converting multi-architecture images, as only during this conversion is a new index manifest uploaded. In the case of converting single-architecture images, the manifest is not uploaded, and the process ends directly.

Please check the following list:

WaberZhuang commented 1 month ago

Thanks for the PR, please add your signature to the commit using git commit -s ... to pass the project checks.