With the release of Docker 0.11, one can use the host's network directly by specifying --net=host when running the container. This allows me to bind to the host's IP address, which enables the use of service discovery with consul etc. However, if I have docker set to use LXC as the container engine, I do not see any of the interfaces except the loopback address. I would dearly love to keep using LXC as it enables me to easily connect to a running container and poke around for debugging.

Does anybody know how to configure docker + LXC so I can have direct host networking?

有帮助吗?

解决方案

It is a bug, please report it to the github repo. In the meantime, you can use pipework to do the same thing: github.com/jpetazzo/pipework.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top