Univention Bugzilla – Bug 43108
Support UDP for Docker Ports
Last modified: 2017-01-20 16:09:15 CET
PortsRedirection=2000:2000/udp Should be supported by docker itself easily (just passed to the docker command). May need some adjustments in the utility functions regarding ports. May need adjustments in the Provider Portal.
Fixed in univention-appcenter 5.0.23-33.260.201701161043 You can test it with: univention-app dev-set univention-demo "PortsRedirection=5000:5000/udp, 6000:6000, 6000:6000/udp" DockerImage=docker.software-univention.de/ucs-appbox-amd64:4.1-4 DockerScriptSetup=/bin/true univention-app install univention-demo This should open 5000:5000/udp, 6000:6000/tcp, 6000:6000/udp You can test UDP with: https://wiki.python.org/moin/UdpCommunication (at least I did it with that page) Note that you need to adjust the port in the scripts. The receiving.py script also needs to listen to '0.0.0.0'. Provider Portal needs adjustments to support it, but it is not broken after this fix. But it would be broken if released before this Bug has been released. So no fix for it here.
OK - docker inspect "Ports": { "5000/udp": [ { "HostIp": "0.0.0.0", "HostPort": "5000" } ], "6000/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "6000" } ], "6000/udp": [ { "HostIp": "0.0.0.0", "HostPort": "6000" } ] } OK - python test (message: Hello, World!) OK - merged to 4.2 OK - YAML
<http://errata.software-univention.de/ucs/4.1/377.html>