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
when you call image.Config(ctx), you got error "unexpected media type application/vnd.oci.image.layer.v1.tar+gzip for sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1"
This checkpoint image was designed long before the OCI took on trying to come up with general guidance on using the registry for artifact storage. Now that there is guidance, I think I would prefer that new checkpoints use the guidance provided by the OCI image spec before just slightly re-arranging the current model.
In my mind this would mean that there would be an artifact type for checkpointed container data, and, ideally, when the OCI v1.1 specs are released for distribution + image, the manifest for that checkpoint data would refer to the original image (of the container being checkpointed); that way there is a API-queryable path from checkpointed data to the original image, and there is no need to make a weird/mixed OCI index, if I understand the current model correctly.
There may be issues I'm not thinking of yet, but that's what comes to mind when I look back at this "checkpoint image format" we are creating today.
Description
unable to get the image manifest from image which generated by
ctr c checkpoint
.A typical image config from a simple criu checkpoint like this
when you call image.Config(ctx), you got error "unexpected media type application/vnd.oci.image.layer.v1.tar+gzip for sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1"
https://github.com/containerd/containerd/blob/main/images/image.go#L232
Steps to reproduce the issue
Describe the results you received and expected
normally read the image manifest
What version of containerd are you using?
latest
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response
The text was updated successfully, but these errors were encountered: