Docker报错
(iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 6379 -j DNAT --to-destination 172.0.0.5:6370 ! -i docker0: iptables: No chain/target/match by that name.
Docker容器启动报错:iptables failed
需要加载该模块
lsmod | grep br_netfilter
sudo modprobe br_netfilter
尝试手动添加iptables规则
sudo iptables -P FORWARD ACCEPT
sudo iptables -A FORWARD -i docker0 -j ACCEPT
sudo iptables -A FORWARD -o docker0 -j ACCEPT
重新启动Docker
sudo systemctl restart docker
重启一下服务看看
docker restart redis
参考文献
https://blog.51cto.com/u_16175489/7200471