forward udp multicast from eth0 to docker0

docker, dockerfile

Solution

After a lot of frustrating days of trying out a number of things... finally something worked:

Using Pipework (https://github.com/jpetazzo/pipework), the following command worked but there is a catch -

pipework eth2 $(docker run -d hipache /usr/sbin/hipache) 50.19.169.157/24

running a docker container by only running the above command did not quite help me. I had to run `tcpdump -i eth2` on my host to capture packets on eth2 interface, which then started to forward the packets to the docker container.

Any idea why is worked and not just running the command??

Problem

I have a docker container running a java application which is listening for UDP multicast packets. I am not receiving the packets inside the container, however they appear on the host machine on eth0. Is there a way for docker to automatically pick up these packets and forward them to the container? Thanks

Original source