Skip to content

Instantly share code, notes, and snippets.

@abenevaut
Last active August 12, 2024 09:37
Show Gist options
  • Save abenevaut/087eb96ecbeafc20267b7af00aea1498 to your computer and use it in GitHub Desktop.
Save abenevaut/087eb96ecbeafc20267b7af00aea1498 to your computer and use it in GitHub Desktop.
# https://docs.docker.com/engine/swarm/swarm-tutorial/#/open-ports-between-the-hosts
& netsh advfirewall firewall add rule name="Docker swarm-mode cluster management TCP" dir=in action=allow protocol=TCP localport=2377
& netsh advfirewall firewall add rule name="Docker swarm-mode node communication TCP" dir=in action=allow protocol=TCP localport=7946
& netsh advfirewall firewall add rule name="Docker swarm-mode node communication UDP" dir=in action=allow protocol=UDP localport=7946
& netsh advfirewall firewall add rule name="Docker swarm-mode overlay network TCP" dir=in action=allow protocol=TCP localport=4789
& netsh advfirewall firewall add rule name="Docker swarm-mode overlay network UDP" dir=in action=allow protocol=UDP localport=4789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment