Setting up docker swarm and questions on customizing the default ports


I am a docker swarm newbie!

The documentation on the swarm setup: (Getting started with swarm mode | Docker Docs) says the default ports are as follows

TCP port 2377 for cluster management communications
TCP and UDP port 7946 for communication among nodes
TCP and UDP port 4789 for overlay network traffic

Our company has a strict firewall policy and we are allowed to use ports in the 5000 - 5100 range.

docker swarm init has --advertise-addr and the --listen-addr options to change the default cluster management port from 2377 to another port.

Are there similar options to change the default node communication port and the overlay network traffic port? I am not able to find these information easily.


Hey, did you solve this?