问题是怎么出现的不太清楚,过年回来发现公司测试服务器死机了, 重新启动服务器发现docker启动不了 ,问题解决了再次记录一下。
处理过程
启动docker
排查系统日志 发现报错iptables添加规则失败
tail -200f /var/log/messages
Feb 20 13:52:20 localhost dockerd: time="2024-02-20T13:52:20.673358206+08:00" level=info msg="Firewalld: docker zone already exists, returning"
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER' failed: iptables: No chain/target/match by that name.
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER' failed: iptables: No chain/target/match by that name.
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER' failed: iptables: No chain/target/match by that name.
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D PREROUTING' failed: iptables: Bad rule (does a matching rule exist in that chain?).
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D OUTPUT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -F DOCKER-ISOLATION' failed: iptables: No chain/target/match by that name.
Feb 20 13:52:20 localhost firewalld[836]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -X DOCKER-ISOLATION' failed: iptables: No chain/target/match by that name.
Feb 20 13:52:21 localhost firewalld[836]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.4.21: goto 'FWDI_docker' is not a chain#012#012Error occurred at line: 2#012Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Feb 20 13:52:21 localhos
1614




被折叠的 条评论
为什么被折叠?



