Passing UDP from Docker container

I just started experimenting with Docker and got into a problem I couldn't solve (note that I am using boot2docker).

I have a simple service in my container that listens on 8080 / tcp and 5000 / udp .

docker run -d -p 0.0.0.0:5000:5000/udp -p 0.0.0.0::8080 test / service

From my macos terminal, I can set telnet to 192.168.59.103:8080 and issue simple commands, so TCP works fine.

Then I try UDP by calling the following:

echo "HELLO" | socat - UDP-DATAGRAM: 192.168.59.103: 5000, broadcast

via Wireshark, I can see that the datagram makes it to the service and the service tries to retry it back but gets an ICMP response stating that the port is invalid.

So, it seems like I'm pretty close to having a working test case, but I'm just not sure what I need to configure to allow the broadcast back to the mac terminal that initiated the call.

Any advice would be appreciated.

+3


source to share





All Articles