containerd导入本地镜像的一个小坑

containerd 命令行工具为 ctr

本地镜像导入命令:

ctr image import <path/to/image/file>

注意:当tar包没有tag信息时,导入之后,无报错,errno 为0,但是 通过 ctr images ls 查看却没有相关的镜像。这种情况,需要添加 --digests=true 来导入:

ctr image import --digests=true <path/to/images/file>

同步自 hxysayhi

posted @ 2022-02-24 23:49  hxysayhi  阅读(3893)  评论(1)    收藏  举报