Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top