标签:highlight worker manage tis 基本 ken token arm 集群
$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.
docker swarm join --token SWMTKN-1-2dw5zjum1lblatwcp6izyucutslkx66r9z88ofwhkpdsemlpzs-6g8iylp6mc47wnpek3jwae57j 192.168.0.38:2377(复制上面运行的结果)
1.查看当前swarm上的节点 docker node ls
标签:highlight worker manage tis 基本 ken token arm 集群
原文地址:https://www.cnblogs.com/yoyo1216/p/11059623.html