Multicast from docker to host's eth

currently i am trying to send some multicast data from my docker‘s application throughout my host’s eth2 host interface. i did use --net=host option in docker and this was working perfectly, and unfortunately since i need to open multiple instances that uses same port, its impossible for me to use net=host anymore. i have to go through the bridged mode of docker0

in my docker’s interface i have eth0 which is linked to my docker0 as

  • Docker-Machine stuck on creating default
  • Docker didn't forward the port from web service
  • Docker Error when Starting an Image
  • Where is jenkins.xml in jenkins docker container
  • How to avoid recreation of a linked container with docker-compose?
  • Docker Container npm global affect host or only container?
  • therefore i did : route add -net dev eth0 to pass all multicast packets that my app send to to my eth0, which is connected to host as docker0.

    therefore, i used wireshark to listen whether my application really throws the message packet to my eth0 inside container, and it really does sending multicasts when i use wireshark inside container.

    now throughout i also used wireshark to listen to my docker0 and the packets were there. Now how do i “Forward all my multicast packets” throughout docker0 to my eth2? i used several iptables approach, but none of them seemed to be useful, perhaps that its being ignored?

    any help would be appreciated… thanks!

  • Connecting go and postgres with docker-compose
  • How to choose interface while creating a docker network?
  • mysql_config_editor with docker
  • Docker run returning “snmpd is neither service nor target!? ” while trying to restart it
  • Docker: Development environments [closed]
  • Flask app doesn't retrieve data from same database as unit tests
  • One Solution collect form web for “Multicast from docker to host's eth”

    You can use an IGMP proxy like this:

    Good luck

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.