小编给大家分享一下如何安装shipyard集群,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
#在shipyard主节点部署shipyard-rethinkdb
docker run \
-ti \
-d \
--restart=always \
--name shipyard-rethinkdb \
docker-1:5000/rethinkdb
#在shipyard主节点部署shipyard-discovery
docker run \
-ti \
-d \
-p 4001:4001 \
-p 7001:7001 \
--restart=always \
--name shipyard-discovery \
docker-1:5000/microbox-etcd -name discovery
#在shipyard主节点部署shipyard-swarm-manager
docker run \
-ti \
-d \
--restart=always \
--name shipyard-swarm-manager \
docker-1:5000/swarm:latest \
manage --host tcp://0.0.0.0:3375 etcd://12.1.1.24:4001
#在shipyard主节点部署shipyard-controller
docker run \
-ti \
-d \
--restart=always \
--name shipyard-controller \
--link shipyard-rethinkdb:rethinkdb \
--link shipyard-swarm-manager:swarm \
-p 8080:8080 \
docker-1:5000/shipyard-shipyard:latest \
server \
-d tcp://swarm:3375
#在各docker Damon节点部署shipyard-proxy
docker run \
-ti \
-d \
-p 2375:2375 \
--hostname=$HOSTNAME \
--restart=always \
--name shipyard-proxy \
-v /var/run/docker.sock:/var/run/docker.sock \
-e PORT=2375 \
docker-1:5000/shipyard-docker-proxy:latest
#在各docker Damon节点部署shipyard-swarm-agent
docker run \
-ti \
-d \
--restart=always \
--name shipyard-swarm-agent \
docker-1:5000/swarm:latest \
join --addr <本机(shipyard-proxy)ip>:2375 etcd://12.1.1.24:4001
#测试
http://主节点 ip:8080
登录:admin/shipyard
以上是“如何安装shipyard集群”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注天达云行业资讯频道!