Docker commpose failed to create network rss_public_access: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

释放双眼,带上耳机,听听看~!

Docker commpose 启动容器时提示如下

failed to create network rss_public_access: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-84856a838228 -j RETURN: iptables: No chain/target/match by that name.

解决方法:

modprobe nf_conntrack

设置为开机启动

cat > /etc/sysconfig/modules/ipvs.modules <<EOF
#!/bin/bash
modprobe -- ip_vs
modprobe -- ip_vs_rr
modprobe -- ip_vs_wrr
modprobe -- ip_vs_sh
modprobe -- nf_conntrack
EOF
chmod 755 /etc/sysconfig/modules/ipvs.modules && bash /etc/sysconfig/modules/ipvs.modules && lsmod | grep -e ip_vs -e nf_conntrack

该模块是nf_conntrack. sysctl是nf_conntrack_helper
https://github.com/firewalld/firewalld/issues/440

给TA买糖
共{{data.count}}人
人已赞赏
报错锦集

Docker commpose failed to create network Failed to program NAT chain: COMMAND_FAILED:

2022-7-4 6:03:21

报错锦集

一键卸载腾讯云监控YDService和barad_agent

2022-7-6 23:20:46

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索