美文网首页
docker swarm用到的端口

docker swarm用到的端口

作者: CodingCode | 来源:发表于2020-10-21 03:55 被阅读0次
  1. TCP port 2376:
  • This port is used for secure Docker client communication.
  • This port is required for Docker Machine to work.
  • Docker Machine is used to orchestrate Docker hosts.
  1. TCP port 2377
  • This port is used for communication between the nodes of a Docker Swarm or cluster.
  • It only needs to be opened on manager nodes.
  1. TCP and UDP port 7946
  • This port is used for communication among nodes (container network discovery).
  1. UDP port 4789
  • This port is used for overlay network traffic (container ingress networking).
  1. If overlay network is created with encryption (--opt encrypted)
  • It's required that ip protocol 50 (ESP) traffic is allowed.

如何enable/disable ip protocol 50:

$ sudo iptables -A INPUT -p esp -j ACCEPT
$ sudo iptables -A OUTPUT -p esp -j ACCEPT

注意esp是protocol,它没有tcp/udp里面的端口概念,例如你指定:

$ sudo iptables -A INPUT -p esp --dport <port> -j ACCEPT

命令行会直接报语法错误,--dport不支持。

相关文章

网友评论

      本文标题:docker swarm用到的端口

      本文链接:https://www.haomeiwen.com/subject/vlxsmktx.html