1. Create a manage node
$docker swarm init --advertise-addr=192.168.0.38(主机ip) To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-2dw5zjum1lblatwcp6izyucutslkx6 6r9z88ofwhkpdsemlpzs-6g8iylp6mc47wnpek3jwae57j 192.168.0.38:2377 To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
2. run into other machines
docker swarm join --token SWMTKN-1-2dw5zjum1lblatwcp6izyucutslkx66r9z88ofwhkpdsemlpzs-6g8iylp6mc47wnpek3jwae57j 192.168.0.38:2377 (copy operation results above)
3.swarm basic operations
1. Review the current node on the swarm docker node ls