Docker 启动时导致服务器无法访问

Docker 启动时导致服务器无法访问

Centos 7 上的 Docker,使用 Portainer 管理容器。我从 YML 创建了一个 sonarqube 容器。当我部署“堆栈”时,我从来没有得到答案。

使用以下命令从控制台启动docker:,systemcl start docker.service服务器将无法访问并需要重新启动。

检查日志我发现 /var/log/firewalld 有以下输出:

2024-03-25 16:11:54 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D PREROUTING' failed: iptables: Bad rule (does a matching rule exist in that chain?).

2024-03-25 16:11:54 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -D OUTPUT' failed: iptables: Bad rule (does a matching rule exist in that chain?).

2024-03-25 16:11:54 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -F DOCKER' failed: iptables: No chain/target/match by that name.

2024-03-25 16:11:54 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -X DOCKER' failed: iptables: No chain/target/match by that name.

2024-03-25 16:11:55 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -F DOCKER' failed: iptables: No chain/target/match by that name.

2024-03-25 16:11:55 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -X DOCKER' failed: iptables: No chain/target/match by that name.

2024-03-25 16:11:55 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -F DOCKER-ISOLATION-STAGE-1' failed: iptables: No chain/target/match by that name.

2024-03-25 16:11:55 WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -X DOCKER-ISOLATION-STAGE-1' failed: iptables: No chain/target/match by that name.

我正在尝试启动 docker 服务而不自动启动容器。

有什么建议可以解决我的问题吗?

相关内容