当前位置:  开发笔记 > 运维 > 正文

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

如何解决《使用linux内核4.3.0运行docker得到iptablesnat错误》经验,为你挑选了0个好方法。

我将我的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 -d
Warning: '-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表不存在,但我不知道如何处理.

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

推荐阅读
TXCWB_523
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有