Docker Community Forums

Share and learn in the Docker community.

Setting up docker swarm and questions on customizing the default ports


(Youngl) #1

Hi,

I am a docker swarm newbie!

The documentation on the swarm setup: (https://docs.docker.com/engine/swarm/swarm-tutorial/) 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.


(Caasy) #2

Hey, did you solve this?