用法:docker swarm init [OPTIONS]
說明:初始化叢集
範例:
docker swarm init --advertise-addr 192.168.1.108
用法:docker swarm join [OPTIONS] HOST:PORT
說明:加入叢集
範例:
docker swarm join --token SWMTKN-1-1je1ltq4byso7qsx5aikupygoo21dxi6gzibev35egfvv51aid-9c0cgvnpjw7xzssvg4witbjq5 192.168.99.108:2377
用法:docker swarm join-token [OPTIONS] (worker|manager)
說明:管理令牌
範例:
docker swarm join-token worker
用法:docker swarm leave [OPTIONS]