Sending Multicast Packets from Docker Container (to multicast group)

I have an application that sends messages over UDP multicast that I’ve been attempting to put under docker. I’ve been running into much headwind trying to send multicast packets from a docker container.

I have been able to send messages through the --net=host option on running the docker container. I would, however, like to stick with a bridge configuration.

  • Virtualhost: Put online a Flask website with Docker
  • Running Rails application in docker container
  • Recommended Project Structure for Docker
  • How to ship logs in a microservice architecture with docker?
  • What is the meaning of the IDs shown when a Docker image is pulled?
  • Which Docker base image should be used to install Apps in a container without any additional OS?
  • I would like to get some insight in what needs to be done in order to publish messages through the standard docker bridge configuration. I’m attempting to publish messages on with port 16000. I have tried publishing udp port 16000 through the following argument on docker run.


    This doesn’t give me any change in behavior and my host doesn’t see any multicast traffic.

  • Docker not able to use all of Macbook's CPU cores
  • Docker compose new image and instance
  • What is your convention for web app file locations? [closed]
  • 'docker exec' environment different from 'docker run'/'docker attach' environment?
  • How to start docker-machine on OSX?
  • Failing to debug Nginx load-balancer
  • One Solution collect form web for “Sending Multicast Packets from Docker Container (to multicast group)”

    Docker network drivers have no IGMP/PIM support, so you should really establish a direct Layer 2 connection from the container to the physical switch/router.

    As you have found out yourself, docker’s default bridge network will not help you here.

    I haven’t tested it with multicast, but you should be able to achieve that with Pipework.

    macvlan driver should help you with your problem, but is currently experimental as of Docker Engine 1.11

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