How can I import images into containerd?

1.1k Views Asked by At

I imported an image by using ctr image import alpine.tar but I use ctr images ls return is empty

1

first i use skopeo copy docker://docker.io/library/alpine:latest docker-archive:alpine.tar to get the tar

I wish I could import this image into containerd

1

There are 1 best solutions below

0
chronos On

you can add --additional-tag to copy.

skopeo copy --additional-tag alpine:latest docker://docker.io/library/alpine:latest docker-archive:alpine.tar

then import this image.

ctr image import alpine.tar