Docker Swarm required ports

In order for Docker Swarm Manager (Master) and Worker nodes to communicate the following ports need to be opened.

On All nodes (Managers and Workers)

TCP 2376
TCP 7946
UDP 7946
UDP 4789

On Manager nodes only

TCP 2377
TCP 9874