docker启动报错Error starting daemon: Error initializing network controller:…….Iptables not found

docker启动报错Error starting daemon: Error initializing network controller:…….Iptables not found

[root@node02 ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2021-05-06 18:02:02 CST; 28s ago
     Docs: http://docs.docker.com
  Process: 1171 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
 Main PID: 1171 (code=exited, status=1/FAILURE)

May 06 18:02:01 node02 dockerd-current[1171]: time="2021-05-06T18:02:01.106411261+08:00" level=info msg="libcontainerd: new containerd process, pid: 1177"
May 06 18:02:02 node02 dockerd-current[1171]: time="2021-05-06T18:02:02.109999769+08:00" level=warning msg="Docker could not enable SELinux on the host system"
May 06 18:02:02 node02 dockerd-current[1171]: time="2021-05-06T18:02:02.148063708+08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
May 06 18:02:02 node02 dockerd-current[1171]: time="2021-05-06T18:02:02.148566285+08:00" level=info msg="Loading containers: start."
May 06 18:02:02 node02 dockerd-current[1171]: time="2021-05-06T18:02:02.151364623+08:00" level=info msg="Firewalld running: false"
May 06 18:02:02 node02 dockerd-current[1171]: Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: Iptables not found
May 06 18:02:02 node02 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
May 06 18:02:02 node02 systemd[1]: Failed to start Docker Application Container Engine.
May 06 18:02:02 node02 systemd[1]: Unit docker.service entered failed state.
May 06 18:02:02 node02 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

网上搜索大多的方法都是进行删除/var/lib/docker/network
然后进行重启 并没用

解决步骤

报错结尾写明没有找到iptables
进行安装
#安装iptables
yum install -y iptables
#升级iptables
yum update iptables 
#安装iptables-services
yum install iptables-services
进行启动 成功!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/101771.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • docker环境下部署web_docker环境部署

    docker环境下部署web_docker环境部署概述本文采用rpm包的方式,基于docker的centos7镜像层,构建一个zabbix的环境,其中包括zabbix服务端、mysql数据库、zabbix客户端以及grafana。Dockfilezabbix服务器

    2025年7月8日
    4
  • docker 上传本地镜像_不同docker仓库镜像同步

    docker 上传本地镜像_不同docker仓库镜像同步前言之前通过docker搭建过jenkins+python3环境,如果想要在不同的机器上搭建一样的环境,就可以将之前搭建的镜像上传到镜像仓库,这样方便在不同的机器上快速搭建同一套环境。如果公开的话

    2022年7月28日
    6
  • idea 启动docker镜像「建议收藏」

    idea 启动docker镜像「建议收藏」idea启动docker镜像(基于docker镜像已经打好)也是第一次使用。欢迎补充哈~

    2025年11月18日
    7
  • docker nginx+php(docker nginx反向代理)

    一、docker安装:将微信公众号项目运行绑定至80端口(微信服务器只能和外部开通了80端口的服务器之间通信)docker一次构建可放在任何地方就可以运行,不需要进行任何改变DocKer就类似于一个容器。这个容器就好像咱们常用的虚拟机一样,当我们虚拟机里面安装过VS、SQL、浏览器……之后咱们就把虚拟机镜像备份下来、等到下一次需要重新搭一个环境的时候,就可以省去很多事情了,直接…

    2022年4月16日
    71
  • docker dockerfile详解_进入docker容器命令

    docker dockerfile详解_进入docker容器命令前言Dockerfile是一个用来构建镜像的文本文件,文本内容包含了一条条构建镜像所需的指令和说明。Dockerfile简介Dockerfile是用来构建Docker镜像的构建文件,是由一系列

    2022年7月30日
    8
  • docker修改mysql配置

    docker修改mysql配置Docker修改MySQL配置作者:YoungJ前言:大部分程序员在刚使用docker时,按照教程迅速的就装完了mysql,在使用的过程中出现各种问题:比如中文乱码、com.mysql.jdbc.PacketTooBigException:Packetforqueryistoolarge(1053>1024).等等,最简单的方式通过sql去设置,但每次重启又还原了,…

    2022年5月18日
    50

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号