Docker Compose报错Failed to Setup IP tables

Posted hecg95

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker Compose报错Failed to Setup IP tables相关的知识,希望对你有一定的参考价值。

详细信息如下:

[root@hecg docker-gitlab]# docker-compose up -d
Creating network "docker-gitlab_bridge" with driver "bridge"
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-1b0d89adb807 -j RETURN: iptables: No chain/target/match by that name.
 (exit status 1))

查了资料,是因为防火墙修改后没有重启Docker服务,重启Docker服务后就好了:

## 重启docker
[root@hecg docker-gitlab]# systemctl restart docker

## 再次运行 ok
[root@hecg docker-gitlab]# docker-compose up -d
Creating network "docker-gitlab_bridge" with driver "bridge"
Creating docker-gitlab_gitlab_1 ... done

以上是关于Docker Compose报错Failed to Setup IP tables的主要内容,如果未能解决你的问题,请参考以下文章

Failed to deploy 'Compose: docker' CreateProcess error=193, %1 不是有效的 Win32 应用程序

service docker start 报错 :Failed to start docker.se

启动docker报错:Failed to start Docker Application Container Engine.

启动docker报错:Failed to start Docker Application Container Engine.

docker起不来报错:Failed to start Docker Application Container Engine.

docker报错:Failed to restart docker.service: Unit not found.