Linux 比较奇怪的docker启动报错,原因暂时不清楚

            Linux 比较奇怪的docker启动报错,竟然和iptables有关系

我是在虚拟机上偶然发现的,在虚拟机上安装了lnmp环境后,经过一番实验,lnmp下的安装已经基本达到目的,想着看看docker,于是配置docker的yum国内源,安装。

安装完毕后,竟然无法启动docker服务,报错

 

 docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-02-24 15:55:21 CST; 1min 6s ago
     Docs: https://docs.docker.com
  Process: 31155 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 31155 (code=exited, status=1/FAILURE)

2月 24 15:55:21 qyh-master systemd[1]: docker.service: Service hold-off time over, scheduling restart.
2月 24 15:55:21 qyh-master systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
2月 24 15:55:21 qyh-master systemd[1]: Stopped Docker Application Container Engine.
2月 24 15:55:21 qyh-master systemd[1]: docker.service: Start request repeated too quickly.
2月 24 15:55:21 qyh-master systemd[1]: docker.service: Failed with result 'exit-code'.
2月 24 15:55:21 qyh-master systemd[1]: Failed to start Docker Application Container Engine.
2月 24 15:55:41 qyh-master systemd[1]: docker.service: Start request repeated too quickly.
2月 24 15:55:41 qyh-master systemd[1]: docker.service: Failed with result 'exit-code'.
2月 24 15:55:41 qyh-master systemd[1]: Failed to start Docker Application Container Engine.

这就让人无语了。国内docker下载源都还没配置,也就是 /etc/docker/daemon.json 文件都没写,怎么会报错呢?

 

查看了所有日志,包括 journalctl 查看日志,然而仍然没有什么卵用,后来想到我修改了iptables程序名称,以阻止防火墙工作,将 /usr/sbin/iptables 这个名称恢复后,在重启,错误消失,可以正常启动docker了。docker和防火墙有关系吗??奇奇怪怪。

你可能感兴趣的:(LNMP,docker,linux,java,centos,zookeeper)