1. 报错信息
# docker-compose up -d
Creating network “2023-10-25-xcheck-net” with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-7b14cc2d1da4 -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))
2. 原因分析
原因是关闭防火墙之后docker需要重启
3. 解决办法
重启Docker服务解决
service docker restart