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离线安装部署 linux_docker 离线安装

    docker离线安装部署 linux_docker 离线安装docker离线安装

    2022年9月26日
    2
  • docker(12)使用Dockerfile创建jenkins+python3+pytest环境

    docker(12)使用Dockerfile创建jenkins+python3+pytest环境前言之前我们用docker手动安装了jenkins环境,在jenkins中又安装了python3环境和各种安装包,如果我们想要在其他3台机器上安装,又是重复操作,重复劳动,那会显得很low,这里可以

    2022年7月30日
    5
  • 用docker部署jar包_docker run 参数

    用docker部署jar包_docker run 参数小小总结一、思路1、将docker容器中的指定文件夹挂载到宿主机上,更新jar包只需上传到宿主机指定路径,方便更新2、利用bash文件运行jar包,并构建该bash的镜像,代替构建直接运行jar包的镜像,利于镜像与jar包解耦。例如,app-1.0.0.jar升级到app-2.0.0.jar,只须更改bash文件的内容,而无须构建新的镜像。二、准备工作1、创建存放docker配置文件、jar包的文件夹在宿主机上,创建文件夹:/home/admin/app,用于存放bash文件和jar包。然

    2022年9月27日
    2
  • docker安装awvs_docker版本

    docker安装awvs_docker版本前提:安装了docker(docker安装教程)在docker中安装dwvs#1pull拉取下载镜像dockerpullsecfa/docker-awvs#2将Docker的3443端口映射到物理机的13443端口dockerrun-it-d-p13443:3443secfa/docker-awvs##如果有报错重启docker后再重复上一步dockerservicedockerrestart或systemctlrestartdocker

    2022年9月22日
    2
  • gitlab docker安装_crawl用法

    gitlab docker安装_crawl用法1先给个干货crawlab的官方文档地址https://docs.crawlab.cn/Installation/Docker.htmlgithub说明地址https://github.com/crawlab-team/crawlab/blob/master/README-zh.md2两种安装方式一是通过dockerpull拉取,代码如下dockerpulltikazyq/crawlab:latest二是从github拉取代码,然后使用dockercompose命…

    2025年6月15日
    3
  • docker安装redis集群_docker eureka集群

    docker安装redis集群_docker eureka集群NeoKylin-Server离线部署跨主机redis集群NeoKylin-Server离线部署跨主机redis集群一、说明二、部署过程:1.切换root账号或所有语句加sudo;2.关闭6个节点防火墙(或打开端口);3.6个节点导入rpm包后安装基础环境:4.设置所有节点;5.启动docker并导入images;6.时间同步;7.etcd集群配置;8.部署flannel网络;9.n1-n3部署pxc;10.m1-m3部署Haproxy+Keepalived容器;11.m1-m3宿主机

    2022年8月10日
    5

发表回复

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

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