Docker 启动报错:ERROR: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD

安装启动metersphere时报错,Docker启动报错。

ERROR: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-1d32dac2da09 -j DOCKER: iptables v1.8.4 (legacy): Couldn't load target `DOCKER':No such file or directory

解决方法:

1.查看docker的配置信息

cat /etc/docker/daemon.json

确定配置信息:"exec-opts": ["native.cgroupdriver=systemd"]

2.重建docker0网络,按顺序执行以下指令即可

pkill docker
 
iptables -t nat -F
 
ifconfig docker0 down
 
brctl delbr docker0
 
docker -d
 
systmctl restart docker

3.重新启动,恢复

你可能感兴趣的:(docker,docker,容器,运维)