使用 crictl pull 本地镜像报错
使用 ctr 查看镜像正常:
# ctr -n k8s.io image ls | grep core.harbor.domain
core.harbor.domain/iot/busybox:latest application/vnd.docker.distribution.manifest.v2+json sha256:62ffc2ed7554e4c6d360bce40bbcf196573dd27c4ce080641a2c59867e732dee 756.6 KiB linux/amd64 io.cri-containerd.image=managed
使用 crictl 查看镜像也正常:
# crictl image list | grep core.harbor.domain
core.harbor.domain/iot/busybox latest beae173ccac6a 775kB
使用 crictl 拉取镜像报错:
# crictl pull core.harbor.domain/iot/busybox:latest
E1118 10:54:19.427885 44029 remote_image.go:238] "PullImage from image service failed" err="rpc error: code = NotFound desc = failed to pull and unpack image \"core.harbor.domain/iot/busybox:latest\": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:515882a4af328b4195c94fb9398ac2325fa28674d7587084b3d5d633a1cefe59: not found" image="core.harbor.domain/iot/busybox:latest"
FATA[0000] pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "core.harbor.domain/iot/busybox:latest": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:515882a4af328b4195c94fb9398ac2325fa28674d7587084b3d5d633a1cefe59: not found
发现错误信息里的 digest 是 sha256:515882a4af328b4195c94fb9398ac2325fa28674d7587084b3d5d633a1cefe59
而镜像 busybox的 digest 是 sha256:62ffc2ed7554e4c6d360bce40bbcf196573dd27c4ce080641a2c59867e732dee
请问这是什么原因?