UDP broadcast from container (eg. Wake-On-Lan)


I have an application inside a container that sends UDP broadcast messages to outside hosts - when started via docker run with --net=host.
However, I cannot get it to work inside a service created with docker service create, even when I “publish” all used ports with “mode=host”.

So whats the state of broadcast here? Should it work? What might be wrong then? Or will it fail no matter what I do in docker stack?


Edit: BTW, the broadcast message arrives at the host on docker0 interface.