failed to create network error response from daemon filed to setup ip tables问题

朱雀 2023-09-27 19:49 178阅读 0赞

今天在虚拟机上搭建平台,执行docker-compose up -d 报错:

  1. Network layman_default Error 0.0s
  2. failed to create network layman_default: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-8e527ad6d691 -j RETURN: iptables: No chain/target/match by that name.

如图:

c8d721b01ae84dc1b157767426898ce5.png

原因

这是因为在启动docker的时候防火墙做了策略,如果容器在运行中,停止防火墙,在操作容器就会报这个错误,我们可以重启docker解决此问题

  1. systemctl restart docker.service

然后

  1. docker compose up -d

发表评论

表情:
评论列表 (有 0 条评论,178人围观)

还没有评论,来说两句吧...

相关阅读