Study Group: 一姐出品 品質保證 docker-讀書會-07 docker swarm 2
Udemy
好棒棒文件
實作
-
建立四台 host
--advertise-addr
- To put it simply, the –advertise-addr is the address other nodes in the Docker swarm use to connect into your node. You need to provide an IP address of your host, or a network interface which Docker will use to lookup your IP address, and a port number which defaults to 2377
--listen-addr
- The –listen-addr is the address that the swarm service listens on for incoming connections. In early releases, this same flag did double duty as the only way to set the advertised address, so you’ll find old videos and instructions where this was used. With the new –advertise-addr option, it’s safe to ignore these instructions and only pass the –advertise-addr. The default for –listen-addr is to listen on all interfaces on TCP port 2377 (0.0.0.0:2377)