Skip to content

Conversation

ChengyuZhu6
Copy link
Member

Fixes: #4329

@@ -385,6 +385,8 @@ type ContainerCommitOptions struct {
Pause bool
// Compression is set commit compression algorithm
Compression CompressionType
// MediaType format of the committed image (docker or oci)
MediaType MediaTypeFormat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the OCI lingo, "MediaType" means strings like application/vnd.oci.image.index.v1+json

https://specs.opencontainers.org/image-spec/media-types/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explaination. I have changed MediaType to ImageFormat. WDYT?

@ChengyuZhu6 ChengyuZhu6 force-pushed the commit-format branch 2 times, most recently from 049f121 to 1e1035b Compare June 23, 2025 06:44
@ChengyuZhu6 ChengyuZhu6 marked this pull request as ready for review June 23, 2025 07:01
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 410b0f2 into containerd:main Jun 23, 2025
57 of 58 checks passed
@AkihiroSuda AkihiroSuda added this to the v2.1.3 milestone Jun 23, 2025
@ChengyuZhu6 ChengyuZhu6 deleted the commit-format branch June 25, 2025 02:02
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.

Add an option to nerdctl commit command for media type selection
2 participants