3

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?

Community
  • 1
  • 1
Programster
  • 12,242
  • 9
  • 49
  • 55

1 Answers1

2

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.

creack
  • 116,210
  • 12
  • 97
  • 73