1、错误场景和现象
Linux开启或重启防火墙后,使用默认驱动程序创建网络“docker-compose_default”
报错如下:
Creating network "docker-compose_default" 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-97f44f2d11cd -j RETURN: iptables: No chain/target/match by that name. (exit status 1))
2、原因分析
Docker属于容器化技术,如果宿主机防火墙的状态发生了改变,Docker就无法设置容器的IP了。
3、解决办法
关闭防火墙之后docker需要重启,执行以下命令重启docker即可:
service docker restart
标签:tables,enable,DNAT,IP,Failed,Unable,SKIP,docker From: https://www.cnblogs.com/ckapple/p/17833192.html