首页 > 代码库 > 利用shipyard部署swarm集群及管理容器
利用shipyard部署swarm集群及管理容器
shipyard是一个web管理容器的工具
服务器列表:
10.0.22.232 swarm-manage
10.0.22.244 swarm-node-1
10.0.22.245 swarm-node-2
部署swarm集群:
swarm-manage
#curl -s https://shipyard-project.com/deploy | bash -s Digest: sha256:8a60ad2ee9bd1e4e3d2e50b4c61ed510a158c8ca632837d0e4caee49e3641b50 Status: Downloaded newer image for docker.io/shipyard/shipyard:latest Waiting for Shipyard on 10.0.22.232:8080 .................................................................................................................... Shipyard available at http://10.0.22.232:8080 Username: admin Password: shipyard
swarm-node-1
#curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://10.0.22.232:4001 bash -s Adding Node -> Starting Cert Volume -> Starting Proxy -> Starting Swarm Manager -> Starting Swarm Agent Node added to Swarm: 10.0.22.244
swarm-node-2
#curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://10.0.22.232:4001 bash -s Adding Node -> Starting Cert Volume -> Starting Proxy -> Starting Swarm Manager -> Starting Swarm Agent Node added to Swarm: 10.0.22.245
登陆web管理界面:
http://10.0.22.232:8080
帐号:admin 密码:shipyard
显示所有节点的容器:在此界面可以对容器进行启动,关闭,删除等管理
显示所有节点中的images:
显示所有的节点:
查看容器的cpu,内存使用率,日志等相关信息:
创建容器:
本文出自 “激情燃烧的岁月” 博客,请务必保留此出处http://liuzhengwei521.blog.51cto.com/4855442/1898456
利用shipyard部署swarm集群及管理容器
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。