[lxc-users] docker 1.11 - swarm - overlay

Benoit GEORGELIN - Association Web4all benoit.georgelin at web4all.fr
Mon Aug 29 16:11:48 UTC 2016


Here is the deamon errors: 

INFO[0001] Loading containers: start. 
....WARN[0001] Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-28-generic/modules.dep.bin' 
modprobe: WARNING: Module bridge not found in directory /lib/modules/4.4.0-28-generic 
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-28-generic/modules.dep.bin' 
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.4.0-28-generic 
, error: exit status 1 
WARN[0001] Running modprobe nf_nat failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-28-generic/modules.dep.bin' 
modprobe: WARNING: Module nf_nat not found in directory /lib/modules/4.4.0-28-generic`, error: exit status 1 
WARN[0001] Running modprobe xt_conntrack failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-28-generic/modules.dep.bin' 
modprobe: WARNING: Module xt_conntrack not found in directory /lib/modules/4.4.0-28-generic`, error: exit status 1 
INFO[0001] Firewalld running: false 
WARN[0001] Could not load necessary modules for IPSEC rules: Running modprobe xfrm_user failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-28-generic/modules.dep.bin' 

Cordialement, 

Benoît G 


De: "Benoit GEORGELIN - Association Web4all" <benoit.georgelin at web4all.fr> 
À: "lxc-users" <lxc-users at lists.linuxcontainers.org> 
Envoyé: Lundi 29 Août 2016 00:42:48 
Objet: [lxc-users] docker 1.11 - swarm - overlay 

Hi dear members of the list 
Are you able to use docker inside an LXD container , using a docker swarm cluster and an overlay network ? 

Here is what I have when I run a docker inside the cluster : 

docker: Error response from daemon: Error response from daemon: error creating external connectivity network: cannot restrict inter-container communication: please ensure that br_netfilter kernel module is loaded. 

This module exist on the host : 

lxd-virt-01b(06:35:32)/proc/sys/net/bridge] lsmod|grep br_net 
br_netfilter 24576 0 

The file exist 
/lib/modules/4.4.0-28-generic/kernel/net/bridge/br_netfilter.ko 

This module is loaded on the lxd container 

root at dock-m1:~# lsmod|grep br_net 
br_netfilter 24576 0 

But the file does not exist 
root at dock-m1:~# ls -al /lib/modules/4.4.0-28-generic/kernel/net/bridge/br_netfilter.ko 
ls: cannot access '/lib/modules/4.4.0-28-generic/kernel/net/bridge/br_netfilter.ko': No such file or directory ======> I don't know how to fix it :/ 

root at dock-m1:~# docker -v 
Docker version 1.11.2, build b9f10c9 

name: dock-m1 
profiles: 
- docker 
- default 

and I tried : 
config: 
security.privileged: "true" 


On the docker swarm , I have my overlay network : 

ab0e87a92785 swarm-network overlay 

I'm trying to execute this command : 
root at dock-m1:~# docker -H tcp://swarm_manager:port run -itd --net swarm-network -e constraint:node==dock-m1 --name u1 ubuntu 

Thanks for you help. 

PS: any idea if docker 1.12 is ready to be used inside an LXD container ? 

_______________________________________________ 
lxc-users mailing list 
lxc-users at lists.linuxcontainers.org 
http://lists.linuxcontainers.org/listinfo/lxc-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160829/85e7e672/attachment.html>


More information about the lxc-users mailing list