配置主从模式下的错误
# ERROR: Encountered errors while bringing up the project.
## ERROR: for redis4 Cannot start service redis4: driver failed programming external connectivity on endpoint redis4
(e2b07ed11b3f60a60c42629c1931dfffa0ef4e8dac95ea80852fb900eedf59c0): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 17004 -j DNAT --to-destination 172.22.0.2:17004 ! -i br-ac014cd35063: iptables: No chain/target/match by that name. (exit status 1))
参考了大佬的解决方案,加上了自己的改动:
先停掉 down 所有容器
docker-compose down
在重新启动并后台运行所有容器
docker-compose up -d