You can generally deactivate that docker creates iptables rules for you by adding "iptables": false to /etc/docker/daemon.json (you need to create it and begin the file with a { and end it with }, if it doesn’t exist).
Though, if people want published ports only available from the local machine, they publish the ports with 127.0.0.1:20517:20517/udp, and don’t bother to disable docker’s iptables management at all.