Docker Community Forums

Share and learn in the Docker community.

Listening to multicast from container

I am working with devices that allow auto-discovery by sending a discovery packet to a multicast address ( I have a container that listens for these packets which has been working if I run it on the host network.

I now have the requirement to run many of these on one machine and have each of them listen on a different network interface. I have tried publishing the port these devices use by doing -p to no avail. Does anyone have any insight as to why this is not working?

Once that works I am unsure how I can have a certain container only listen on a specific network interface since when publishing the port I am not specifying a network interface address but rather a multicast address.

Thanks in advance!