Forward udp multicast from eth0 to docker0

I have a docker container that runs a Java application that listens for UDP multicast packets. I do not receive packets inside the container, however they appear on the eth0 host machine.

Is there a way for the docker to automatically pick up these packets and send them to the container?

thanks

+5
docker dockerfile
source share
2 answers

After so many disappointing days when you tried to find a few things ... it finally 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 the docker container, just running the specified command did not help me. I had to run tcpdump -i eth2 on my host to capture packets on the eth2 interface, after which it started forwarding packets to the docker container.

Any idea why this works, not just running a command

+1
source share

You might want to try --net host , as this seems to be the only job for receiving multicast traffic outside the host to get to the container as discussed in # 3043 .

+2
source share

All Articles