Sending UDP Multicast messages from Container to Host

I have a container based on a Ubuntu 16.04 image running on my Mac, and I would like to send UDP messages to UDP Multicast group at udpm:// What is the specific command I would need to run a container that would allow this?

I’ve tried running with --net=host but it seems like this doesn’t work the same way on Mac as it does on Linux because containers in Mac have an additional VM layer between the host machine and the container.