문제

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