-
Notifications
You must be signed in to change notification settings - Fork 348
cri-containerd load image failed #638
Comments
@hmtai How do you create the I tried with $ sudo ctrcri --address=/run/containerd/containerd.sock load pause.tar
Loaded image: k8s.gcr.io/pause-amd64:3.1 |
Works for me with the following steps.. $ sudo docker pull k8s.gcr.io/pause-amd64:3.1
3.1: Pulling from pause-amd64
67ddbfb20a22: Pull complete
Digest: sha256:59eec8837a4d942cc19a52b8c09ea75121acc38114a2c68b98983ce9356b8610
Status: Downloaded newer image for k8s.gcr.io/pause-amd64:3.1
$ sudo docker save k8s.gcr.io/pause-amd64:3.1 > pause.tar
$ ls pause.tar
pause.tar
$ sudo ctrcri load pause.tar
Loaded image: k8s.gcr.io/pause-amd64:3.1 |
@Random-Liu I use docker save .I can not find the command ctrcri.How to use ctrcri?
|
@Random-Liu @mikebrow Thanks a lot. I pull k8s.gcr.io/pause-amd64:3.1,it works well as you above steps. But when I pull k8s.gcr.io/pause-amd64:3.0, the same error happened...
|
@Random-Liu @mikebrow cri-containerd load can not load the image which has link image layer? |
@hmtai What do you mean by "link image layer"? Hm, |
@hmtai Yeah, symlink file is skipped https://github.com/containerd/cri-containerd/blob/master/pkg/containerd/importer/importer.go#L104. I think it is for security consideration. @AkihiroSuda Why |
docker save will create symlink for some layers https://github.com/moby/moby/blob/master/image/tarexport/save.go#L378-L385, we may not skip the symlink file? |
We should fix this. |
When I load an image with the command bellow:
an error occurd:
It works well with Docker.
The circtl vision:
The text was updated successfully, but these errors were encountered: