在主节点上使用脚本安装:
curl -sSL https://shipyard-project.com/deploy | bash -s
安装完成后打开:http://172.17.13.5:8080
在从节点上安装:
curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://172.17.13.5:4001 bash -s
docker logs -f shipyard-swarm-manager 查看主节点的日志,是否集群成功,如果有以下报错,可以删除/etc/docker/key.json 在重启一下DOCKER,即可
ERRO[1100] ID duplicated. NSV7:KIFR:IESM:J4QU:5ZFL:4K2C:OAH6:V5G3:PBOB:TE2J:RN3C:TXUN shared by 172.17.13.5:2375 and 172.17.13.8:2375