“overlay 报错”这个说法太宽泛了,因为 overlay 可以出现在很多不同的技术场景里,常见包括:
下面我先列出最常见的几种 overlay 报错原因和排查思路,你可以对照看看是哪一种;如果你能贴出具体报错信息或使用的技术栈,我可以更精准地帮你分析。
failed to mount overlay: invalid argumentoverlay2: the backing xfs filesystem is formatted without d_type supportstorage-driver overlay2 not supported文件系统不支持 d_type
d_typexfs_info / | grep ftype
ftype=0 就会报错内核版本过低
/var/lib/docker 在不支持的文件系统上
SELinux / 权限问题
devicemapper 临时方案,不推荐)ftype=1)/etc/docker/daemon.jsonnetwork plugin overlay failedflannel: failed to find any valid interfacecannot allocate pod IPkubectl get pods -n kube-system
journalctl -u kubelet
ip link show
overlay is not defined常见:
mount: wrong fs type, bad option, bad superblock
overlay: unrecognized mount option
原因:
你可以告诉我:
例如:
Docker 启动容器时报
overlay2: the backing xfs filesystem is formatted without d_type support,系统是 CentOS 7.6
我可以直接给你对应解决方案。