docker swarm init --advertise-addr 10.11.97.71
Log view:
[[ email Protected] ~]# docker swarm init --advertise-addr 10.11.97.71 Swarm initialized: current node (nnkbd7e2emx24ymnzyvxv7h2b) is now a manager. To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5i5ii-69yg43tece4d5sbwl1a1ftmu9 10.11.97.71:2377 To add a manager to this swarm, run ‘docker swarm join-token manager’ and follow the instructions. [[email Protected] ~]#
[[emailprotected] compose_nginx_tomcat]# docker swarm join- -token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5i5ii-69yg43tece4d5sbwl1a1ftmu9 10.11.97.71:2377 This node joined a swarm as a worker. [[email protected] compose_nginx_tomcat]#
[[emailprotected] ~]# docker swarm join- -token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5i5ii-69yg43tece4d5sbwl1a1ftmu9 10.11.97.71:2377 This node joined a swarm as a worker. [[email Protected] ~]#
[[emailprotected] ~]# docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION nnkbd7e2emx24ymnzyvxv7h2b * localhost.localdomain Ready Active Leader 18.09.7 oykg4g4wu8tkvdv4141619seq localhost.localdomain Ready Active 18.09.0 s66kqvljbwsosl7dj2hs3p478 localhost.localdomain Ready Active 18.09.7
docker swarm init --advertise-addr 10.11.97.71
[[emailprotected] ~]# docker swarm init --advertise-addr 10.11.97.71 Swarm initialized: current node (nnkbd7e2emx24ymnzyvxv7h2b) is now a manager. To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5i5ii-69yg43tece4d5sbwl1a1ftmu9 10.11.97.71:2377 To add a manager to this swarm, run ‘docker swarm join-token manager’ and follow the instructions. [[email Protected] ~]#
[[emailprotected] compose_nginx_tomcat]# docker swarm join --token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5iw5ii-69ft.71.97 :2377 This node joined a swarm as a worker. [[email protected] compose_nginx_tomcat]#
[[email protected] ~]# docker swarm join --token SWMTKN-1-4y22cau9ejhrppdlf2g5y7dn6ibltq67ccvoiw2xf3yoj5i5ii-69yg43wce111 :2377 This node joined a swarm as a worker. [[email Protected] ~]#
[[email protected] ~]# docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION nnkbd7e2emx24ymnzyvxv7h2b * localhost.localdomain Ready Active Leader 18.09.7 oykg4g4wu8tkvdv4141619seq localhost.localdomain Ready Active 18.09.0 s66kqvljbwsosl7dj2hs3p478 localhost.localdomain Ready Active 18.09.7