Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctr image import --local=false doesn't create corresponding image #9039

Open
elpdt852 opened this issue Aug 31, 2023 · 1 comment
Open

Ctr image import --local=false doesn't create corresponding image #9039

elpdt852 opened this issue Aug 31, 2023 · 1 comment

Comments

@elpdt852
Copy link

Description

When using ctr image import --local=false to depend on the newer transfer service which uses the unpacker under the hood, it successfully transfers the image into the content store but it is missing a client.ImageService().Create(...) call. I assume this is the client's responsibility and not pkg/transfer/local/import.go?

Without this step, kubernetes won't be able to discover the image even though it is visible with ctr image ls or nerdctl image ls.

Steps to reproduce the issue

  1. ctr image import --local=false ./oci.tar
  2. Run image via CRI interface, e.g. crictl or kubernetes.
  3. Error in containerd log failed to resolve image ... here: https://github.com/containerd/containerd/blob/v1.7.2/pkg/cri/server/container_create.go#L96-L99

Describe the results you received and expected

Image imported with --local=false to be runnable via CRI

What version of containerd are you using?

v1.7.2

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

@lengrongfu
Copy link
Contributor

try use this command to import: ctr -n k8s.io image import --local=false ./oci.tar

@dosubot dosubot bot added the Stale label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants