Skip to content

[Transfer API] ctr images import --all-platforms fails since v2.0: unable to initialize unpacker: no unpack platforms defined: invalid argument #11228

@AkihiroSuda

Description

@AkihiroSuda

Description

containerd v2.0 enabled the Transfer API by default.

This broke ctr images import --all-platforms:

$ ctr images export --all-platforms hello-world.tar docker.io/library/hello-world:latest
$ ctr images import --all-platforms hello-world.tar
ctr: rpc error: code = InvalidArgument desc = unable to initialize unpacker: no unpack platforms defined: invalid argument

Workaround: disable the Transfer API ( --local=true )

Steps to reproduce the issue

See above

Describe the results you received and expected

Received: ctr: rpc error: code = InvalidArgument desc = unable to initialize unpacker: no unpack platforms defined: invalid argument

Expected: the image should be imported, and it should be unpacked for the default platform

What version of containerd are you using?

containerd github.com/containerd/containerd/v2 v2.0.1 88aa2f5

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions