Open goneflyin opened 8 years ago
Thanks to @goneflyin for raising this. I can confirm the above behavior too. I am blocked by this problem too and would like to fix it. Any thoughs/suggestions @mojombo?
Any update regarding this issue? How to use netlink event handler within docker container?
When running god in a docker container, using CentOS 6 or 7, the netlink event handler is unable to initialize due to lower level capability or permission issues.
Running directly within a normal container without any additional capabilities beyond the defaults, we see:
To get more details, I modified
/god/lib/god/event_handler.rb
to allow the exception that is thrown byrequire "netlink_handler_ext"
in order to see the specific problem. Here is that output:Theorizing that perhaps the low-level control that
god
utilizes, perhaps additional capabilities were required. To eliminate that possibility, I ran the above again inside a container with--privileged
enabled. While it did still fail, the results were slightly different:So far, after much googling, the best explanation I've found is that the netlink control interface may not be namespace aware. Here are some similar issues I've found that may be pertinent:
Frankly, I'm not familiar with programming directly against the linux kernel APIs so I could be waaaay off base. That said, I can't imagine anyone is successfully running
god
inside docker and utilizing the netlink event system at this point. If so, I'd be happy to know precisely how to configure the environment to enable this to work correctly.