前言: 使用docker compose up -d 出现Creating network “docker-zookeeper_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-bd34eba317ce -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))
的解决方案
解决步骤1、 查看防火墙是否已经关闭`
systemctl status firewalld
解决步骤2、关闭虚拟机防火墙
systemctl stop firewalld
解决步骤3、重新启动docker
systemctl start docker
解决步骤4、进去虚拟机docker-compose.yml所在的目录,重新启动docker compose 创建容器
docker-compose up -d