Centos7.1上yum安装docker后查看firewalld状态,必然出现的错误,依次执行后好了, 重启本机又报错,不知道怎么解决


Centos7.1 安装docker后,systemctl status firewalld.service时报错ERROR: COMMAND_FAILED: '/sbin/iptables,依次执行提示指令后再查看错误没了,重启本地机器又出现了。

systemctl status firewalld.service

firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since 五 2015-12-18 01:50:16 CST; 1min 40s ago
Main PID: 879 (firewalld)
CGroup: /system.slice/firewalld.service
└─879 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t nat -C POSTROUTING -s 172.17.42.1/16 ! -o docker0 -j MASQUERADE' failed: iptables: No chain/target/match by that name.
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching rule exist in that chain?).
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT' failed: iptables: Bad rule (does a matching rule ...in that chain?).
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT' failed: iptables: Bad rule (does a matching rul...in that chain?).
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT' failed: iptables:...in that chain?).
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t nat -n -L DOCKER' failed: iptables: No chain/target/match by that name.
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j DOCKER' failed: iptables: No chain/target/match by that name.
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t nat -C OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8' failed: iptables: No chain...ch by that name.
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t filter -n -L DOCKER' failed: iptables: No chain/target/match by that name.
12月 18 01:50:24 CentosApp firewalld: 2015-12-18 01:50:24 ERROR: COMMAND_FAILED: '/sbin/iptables -t filter -C FORWARD -o docker0 -j DOCKER' failed: iptables: No chain/target/match by that name.
已邀请:

东方星痕 - 高级工程师

赞同来自: 李逍遥


http://www.lxy520.net/2015/09/ ... -bao/

看看是不是这问题

稻壳

赞同来自:


是不是启动好了操作了firewalld?

要回复问题请先登录注册