拉镜像报错某个目录找不到
Failed to pull image "xxx.xxx.cn/cem/cem-python:cemhikvision-1ad4685-20240314140514": rpc error: code = Unknown desc = failed to pull and unpack image "xxx.xxx.cn/cem/cem-python:cemhikvision-1ad4685-20240314140514": failed to extract layer sha256:a384a3c6632e723e19284c139a1830317f38b9b3ac14308425ed1d1f75cfdbf5: lstat /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/20546/fs/usr/local/python3/lib/python3.8/site-packages/google/protobuf/internal: not a directory: unknown
我发现报错目录里对应的包 是protobuf,Dockerfile中刚好有对这个包的操作
然后我将 这两行合并到上面的RUN中,让装依赖 安装 卸载 又安装的操作在同一个层级中完成,问题解决。
chatgpt解释:
之前也遇到过类似的,通过升级kaniko解决。
标签:cn,cem,xxx,汇总,报错,相关,k8s,image From: https://www.cnblogs.com/huandada/p/18073701