Tag: ebtables

无法在Docker容器中设置net.bridge.bridge-nf-call-iptables

我试图控制是否通过我的Docker容器中设置的网桥的数据包​​发送到iptables进行处理使用以下命令: sysctl -w net.bridge.bridge-nf-call-iptables="1" 不幸的是,这不起作用: sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory 看起来我的Docker容器中没有/ proc / sys / net / bridge目录,尽pipe目录在我的主机中。 在主机上运行同样的命令。 我已经检查,并且据我所知,所有正确的模块都安装在主机上,并出现在Docker容器中。 谷歌一直没有用,所以我想知道是否有其他人看到这个问题和/或有一个解决scheme?

如何在Docker中使用ebtables?

当我在Ubuntu Docker容器中运行/sbin/ebtables –list时,我收到消息: root@500790dca629:/core-release-4.8# /sbin/ebtables –list modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.43-boot2docker/modules.dep.bin' The kernel doesn't support the ebtables 'filter' table. 如何在Docker中启用ebtables?