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管理界面:
帐号:admin 密码:shipyard
显示所有节点的容器:在此界面可以对容器进行启动,关闭,删除等管理
显示所有节点中的images:
显示所有的节点:
查看容器的cpu,内存使用率,日志等相关信息:
创建容器:
本文出自 “激情燃烧的岁月” 博客,请务必保留此出处http://liuzhengwei521.blog.51cto.com/4855442/1898456
原文地址:http://liuzhengwei521.blog.51cto.com/4855442/1898456