crictl拉取镜像失败:crictl pull image failed: failed to extract layer & failed to unmount target & device or resource busy: unknown

拉取镜像时报错

报错日志:

"PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"harbor.my.com/library/centos:centos7\": failed to extract layer 
sha256:174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02: failed to unmount 
/var/lib/rancher/rke2/agent/containerd/tmpmounts/containerd-mount490508934: failed to unmount target 
/var/lib/rancher/rke2/agent/containerd/tmpmounts/containerd-mount490508934: device or resource busy: unknown" 
image="harbor.my.com/library/centos:centos7"

FATA[0006] pulling image: failed to pull and unpack image "harbor.my.com/library/centos:centos7": failed to extract layer 
sha256:174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02: failed to unmount 
/var/lib/rancher/rke2/agent/containerd/tmpmounts/containerd-mount490508934: failed to unmount target 
/var/lib/rancher/rke2/agent/containerd/tmpmounts/containerd-mount490508934: device or resource busy: unknown

在这里插入图片描述

原因:主机安装了安全类软件导致!

解决思路:https://github.com/containerd/containerd/issues/10690

解决办法:
先暂停安全软件或者卸载后重试!

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐