docker evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nodest_conn" error="open /proc/sys/net/ipv4/vs/expire_nodest_conn: no such file or directory"
我使用的是docker swarm
-#报错
evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nodest_conn" error="open /proc/sys/net/ipv4/vs/expire_nodest_conn: no such file or directory"
-#查看是否开启 ip_vs
lsmod | grep ip_vs
=============================================
-#解决
#开启
modprobe ip_vs
============================================
-#查看
lsmod | grep ip_vs
ip_vs 155648 0
nf_conntrack 155648 6 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE,ip_vs
nf_defrag_ipv6 24576 2 nf_conntrack,ip_vs
libcrc32c 16384 4 nf_conntrack,nf_nat,xfs,ip_vs
============================================
-#重启docker
systemctl restart docker