一、拉取以下几种镜像:
docker pull alpineshipyard/shipyard
docker pull swarm docker pull shipyard/shipyarddocker pull rethinkdbdocker pull microbox/etcddocker pull ehazlett/curl docker pull shipyard/docker-proxy二、执行如下命令安装shipyard:
curl -s https://shipyard-project.com/deploy | bash -s
三、登录验证:
需等待几分钟,在浏览器中输入以下命令
http://host_ip:port/ //port默认端口是8080默认用户名:admin
默认密码:shipyard
登录成功如图:
四、添加Docker_host节点:
使用shipyard来管理docker host集群节点
sudo curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://$host-ip:4001 bash -s 注意:$host-ip 是主的shipyard节点的IP该脚本需要运行在从node的主机上,不是主机节点的机器上.shipyard官网: