码迷,mamicode.com
首页 > 其他好文 > 详细

docker三剑客(3) swarm 管理工具 shipyard

时间:2017-07-12 10:20:44      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:etc   ext   deploy   seconds   check   node   分享   rar   database   

 

1,设置下载源

#docker默认下载源,下了一整天都没下载下来,改成国内源 分分钟搞定

test@ubuntu:~$ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh |sudo  sh -s http://abcd1234.m.daocloud.io
docker version >= 1.12
{"registry-mirrors": ["http://abcd1234.m.daocloud.io"]}
Success.
You need to restart docker to take effect: sudo systemctl restart docker.service
test@ubuntu:~$ sudo systemctl restart docker.service

2、安装shipyard

#现在软件安装方式越来越安逸了,一条命令就完成,最后还提示登陆或者发开放式

test@ubuntu:~$ curl -s https://shipyard-project.com/deploy | sudo bash -s
Unable to find image alpine:latest locally
latest: Pulling from library/alpine
88286f41530e: Pulling fs layer
88286f41530e: Verifying Checksum
88286f41530e: Download complete
88286f41530e: Pull complete
Digest: sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe
Status: Downloaded newer image for alpine:latest
Deploying Shipyard
 -> Starting Database
Unable to find image rethinkdb:latest locally
latest: Pulling from library/rethinkdb
9f0706ba7422: Pulling fs layer
13cff7bd7d5f: Pulling fs layer
2f7f87e28358: Pulling fs layer
4f5c608387ab: Pulling fs layer
0168e87b5569: Pulling fs layer
4f5c608387ab: Waiting
0168e87b5569: Waiting
2f7f87e28358: Verifying Checksum
2f7f87e28358: Download complete
13cff7bd7d5f: Verifying Checksum
13cff7bd7d5f: Download complete
0168e87b5569: Verifying Checksum
0168e87b5569: Download complete
4f5c608387ab: Verifying Checksum
4f5c608387ab: Download complete
9f0706ba7422: Retrying in 5 seconds
9f0706ba7422: Retrying in 4 seconds
9f0706ba7422: Retrying in 3 seconds
9f0706ba7422: Retrying in 2 seconds
9f0706ba7422: Retrying in 1 second
9f0706ba7422: Retrying in 10 seconds
9f0706ba7422: Retrying in 9 seconds
9f0706ba7422: Retrying in 8 seconds
9f0706ba7422: Retrying in 7 seconds
9f0706ba7422: Retrying in 6 seconds
9f0706ba7422: Retrying in 5 seconds
9f0706ba7422: Retrying in 4 seconds
9f0706ba7422: Retrying in 3 seconds
9f0706ba7422: Retrying in 2 seconds
9f0706ba7422: Retrying in 1 second
9f0706ba7422: Verifying Checksum
9f0706ba7422: Download complete
9f0706ba7422: Pull complete
13cff7bd7d5f: Pull complete
2f7f87e28358: Pull complete
4f5c608387ab: Pull complete
0168e87b5569: Pull complete
Digest: sha256:e752a5624ab4c0724d1c2c5201e09c8d88de290bafd85f026ddb53cc21a31717
Status: Downloaded newer image for rethinkdb:latest
 -> Starting Discovery
Unable to find image microbox/etcd:latest locally
latest: Pulling from microbox/etcd
8ded6e8ab3fd: Pulling fs layer
bf8f85223d7a: Pulling fs layer
a3ed95caeb02: Pulling fs layer
a3ed95caeb02: Verifying Checksum
a3ed95caeb02: Download complete
bf8f85223d7a: Verifying Checksum
bf8f85223d7a: Download complete
8ded6e8ab3fd: Retrying in 5 seconds
8ded6e8ab3fd: Retrying in 4 seconds
8ded6e8ab3fd: Retrying in 3 seconds
8ded6e8ab3fd: Retrying in 2 seconds
8ded6e8ab3fd: Retrying in 1 second
8ded6e8ab3fd: Verifying Checksum
8ded6e8ab3fd: Download complete
8ded6e8ab3fd: Pull complete
bf8f85223d7a: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:941fd46b4eab265c65da9bfbf33397b853a7cef6c16df93a1e3fea7b4e47fc90
Status: Downloaded newer image for microbox/etcd:latest
 -> Starting Cert Volume
 -> Starting Proxy
Unable to find image shipyard/docker-proxy:latest locally
latest: Pulling from shipyard/docker-proxy
8f4ec95ceaee: Pulling fs layer
ac77a345f217: Pulling fs layer
43039e3ef672: Pulling fs layer
a3ed95caeb02: Pulling fs layer
a3ed95caeb02: Waiting
43039e3ef672: Verifying Checksum
43039e3ef672: Download complete
a3ed95caeb02: Verifying Checksum
a3ed95caeb02: Download complete
8f4ec95ceaee: Verifying Checksum
8f4ec95ceaee: Download complete
8f4ec95ceaee: Pull complete
ac77a345f217: Retrying in 5 seconds
ac77a345f217: Retrying in 4 seconds
ac77a345f217: Retrying in 3 seconds
ac77a345f217: Retrying in 2 seconds
ac77a345f217: Retrying in 1 second
ac77a345f217: Verifying Checksum
ac77a345f217: Download complete
ac77a345f217: Pull complete
43039e3ef672: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:da6bbd1a145581a940d44940cce0f43705d7f8ec552a4e97e77104ec1b6dc3d1
Status: Downloaded newer image for shipyard/docker-proxy:latest
 -> Starting Swarm Manager
 -> Starting Swarm Agent
 -> Starting Controller
Unable to find image shipyard/shipyard:latest locally
latest: Pulling from shipyard/shipyard
cb5507795515: Pulling fs layer
fd711d385b34: Pulling fs layer
9f2a509de079: Pulling fs layer
a5251eb716bb: Pulling fs layer
a5251eb716bb: Waiting
cb5507795515: Verifying Checksum
cb5507795515: Download complete
cb5507795515: Pull complete
9f2a509de079: Retrying in 5 seconds
9f2a509de079: Retrying in 4 seconds
9f2a509de079: Retrying in 3 seconds
9f2a509de079: Retrying in 2 seconds
9f2a509de079: Retrying in 1 second
9f2a509de079: Verifying Checksum
9f2a509de079: Download complete
a5251eb716bb: Retrying in 5 seconds
a5251eb716bb: Retrying in 4 seconds
a5251eb716bb: Retrying in 3 seconds
a5251eb716bb: Retrying in 2 seconds
a5251eb716bb: Retrying in 1 second
a5251eb716bb: Verifying Checksum
a5251eb716bb: Download complete
fd711d385b34: Retrying in 5 seconds
fd711d385b34: Retrying in 4 seconds
fd711d385b34: Retrying in 3 seconds
fd711d385b34: Retrying in 2 seconds
fd711d385b34: Retrying in 1 second
fd711d385b34: Verifying Checksum
fd711d385b34: Download complete
fd711d385b34: Pull complete
9f2a509de079: Pull complete
a5251eb716bb: Pull complete
Digest: sha256:5f065362680fa4565dd150c8da3edd09b79a7a3010d3ceef20093c2a879187e0
Status: Downloaded newer image for shipyard/shipyard:latest
Waiting for Shipyard on 192.168.31.119:8080

Shipyard available at http://192.168.31.119:8080
Username: admin Password: shipyard

 打开shipyard界面,查看NODES就本机一个节点

技术分享

3、添加其他节点

 

docker三剑客(3) swarm 管理工具 shipyard

标签:etc   ext   deploy   seconds   check   node   分享   rar   database   

原文地址:http://www.cnblogs.com/qingzheng/p/7151043.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!