首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >docker启动报错Error starting daemon: Error initializing network controller:…….Iptables not found

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

作者头像
全栈程序员站长
发布2022-06-29 18:16:19
发布2022-06-29 18:16:19
95400
代码可运行
举报
运行总次数:0
代码可运行
代码语言:javascript
代码运行次数:0
运行
复制
[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 然后进行重启 并没用

解决步骤

代码语言:javascript
代码运行次数:0
运行
复制
报错结尾写明没有找到iptables
进行安装
#安装iptables
yum install -y iptables
#升级iptables
yum update iptables 
#安装iptables-services
yum install iptables-services
进行启动 成功!

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021年6月4,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档