使用linux内核4.3.0运行docker得到iptables nat错误

使用linux内核4.3.0运行docker得到iptables nat错误,第1张

概述我将我的debian内核升级到4.3.0 root@qa-control-nce-yuztest1:/usr/src/kernels/linux-4.3# uname -a Linux qa-control-nce-yuztest1 4.3.0 #1 SMP Thu Dec 10 00:47:22 CST 2015 x86_64 GNU/Linux bug找到了docker daemon ha r 我将我的debian内核升级到4.3.0

root@qa-control-nce-yuztest1:/usr/src/kernels/linux-4.3# uname -a
Linux qa-control-nce-yuztest1 4.3.0 #1 SMP Thu Dec 10 00:47:22 CST 2015 x86_64 GNU/linux

BUG找到了docker daemon ha

root@qa-control-nce-yuztest1:/usr/src/kernels/linux-4.3# docker -dWarning: '-d' is deprecated,it will be removed soon. See usage.WARN[0000] please use 'docker daemon' instead.          WARN[0000] Udev sync is not supported. This will lead to unexpected behavior,data loss and errors. For more information,see https://docs.docker.com/reference/commandline/daemon/#daemon-storage-driver-option INFO[0000] API Listen on /var/run/docker.sock           WARN[0000] Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section. INFO[0000] [graphdriver] using prior storage driver "devicemapper" FATA[0000] Error starting daemon: Error initializing network controller: error obtaining controller instance: Failed to create NAT chain: iptables Failed: iptables -t nat -N DOCKER: iptables v1.4.14: can't initialize iptables table `nat': table does not exist (do you need to insmod?)Perhaps iptables or your kernel needs to be upgraded. (exit status 3)

似乎iptables nat表不存在,但我不知道如何处理.

需要你的帮助,提前谢谢!

解决方法 你需要一个配置了iptables nat的内核.我怀疑是因为你自己升级了内核,这意味着你没有使用发行版提供的内核?在这种情况下,您可能从头开始配置它并且没有启用iptables nat.

运行config(‘make menuconfig’)时,搜索’_nat’,然后通过它找到iptables nat配置,并启用它.

总结

以上是内存溢出为你收集整理的使用linux内核4.3.0运行docker得到iptables nat错误全部内容,希望文章能够帮你解决使用linux内核4.3.0运行docker得到iptables nat错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1029286.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存