Docker不可能的设置sysctl参数在容器RHEL 6.6中

我创build了RHEL 6.6的映像(从registry.access.redhat.com/rhel6.6)但是当我运行一个容器时:

docker run --privileged --rm -h "DAN" --net net_custom --ip 200.0.2.3 -t -i test_beta_4 bash 

我尝试加载一些参数在sysctl.conf中,它返回以下错误:

 error: "net.core.rmem_default" is an unknown key error: "net.core.wmem_default" is an unknown key error: "net.core.rmem_max" is an unknown key error: "net.core.wmem_max" is an unknown key 

我检查下/ proc / sys / net / core /,我发现这些文件丢失。 所以我如何改变这些networking内核设置? 即时通讯运行docker在我的Mac上。 谢谢

同样的问题出现在这个特定的github问题上: https : //github.com/moby/moby/issues/30778

看来这些net.core参数不是内核能够放入命名空间的东西。 这个错误信息是因为docker试图设置这些,在内核中否认它。

这个问题目前在编写的时候是活跃的,看起来docker开发人员将在内核团队中循环。

作为解决方法,您应该能够在全局范围内设置主机上的这些设置,然后将其扩展到您的所有容器中。