Skip to content

Ctr checkpoint export image failure #6812

@planetA

Description

@planetA

Description

Exporting a checkpoint fails with an error:

ctr: content digest sha256:ba15b7a60f30deb2c84ddabfcfb9041492fea5998a064b48fa521f69703ba028: not found

Steps to reproduce the issue

  1. Start a container in a separate console
sudo ctr run --rm docker.io/library/busybox:latest foo /bin/sh
  1. Create a checkpoint
sudo ctr c checkpoint --task --image --rw foo foo-ckpt
  1. Export a checkpoint
$ sudo ctr i export ./foo.tar foo-ckpt --platform linux/amd64
ctr: content digest sha256:ba15b7a60f30deb2c84ddabfcfb9041492fea5998a064b48fa521f69703ba028: not found

Describe the results you received and expected

I expected the archive with checkpoint to be created. The file is created, but it is empty.

What version of containerd are you using?

containerd github.com/containerd/containerd v1.6.2 de8046a

Any other relevant information

$ sudo ctr i check
ERRO[0000] unable to check unpack for foo-ckpt           error="unexpected media type application/vnd.containerd.container.checkpoint.runtime.options+proto for sha256:d8183a03f8f3429623e6aa55d13c70d1bfc282fe5c3d6562180fdc55c7614589: not found"
REF                              TYPE                                                      DIGEST                                                                  STATUS            SIZE                UNPACKED
docker.io/library/busybox:latest application/vnd.docker.distribution.manifest.list.v2+json sha256:caa382c432891547782ce7140fb3b7304613d3b0438834dce1cad68896ab110a complete (2/2)    756.1 KiB/756.1 KiB true
foo-ckpt                         application/vnd.oci.image.index.v1+json                   sha256:4468afbf7fd57edd61545fbad5f7aa91b36f0d8b3e92b5484e69bfaab1941901 unavailable (0/?) 0.0 B/?             false
ctr: unable to check unpack for foo-ckpt: unexpected media type application/vnd.containerd.container.checkpoint.runtime.options+proto for sha256:d8183a03f8f3429623e6aa55d13c70d1bfc282fe5c3d6562180fdc55c7614589: not found

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions