# 采集木jj
原文:http://www.cnblogs.com/caoguo/p/5735189.html
# CentOS7 Install Shipyard
# yum install docker
# systemctl restart docker
# docker login -u user-p password -e sample.aliyun.com registry.aliyuncs.com
# 上面docker加速一大段实际就下面这一句
# vi /etc/sysconfig/docker
# ADD_REGISTRY='--add-registry xxx.mirror.aliyuncs.com'
$ docker pull alpine
$ docker pull library/shipyard
$ docker pull library/rethinkdb
$ docker pull microbox/etcd
$ docker pull shipyard/docker-proxy
$ docker pull swarm
$ docker pull shipyard/shipyard
$ curl -s https://shipyard-project.com/deploy | bash -s
Deploying Shipyard
-> Starting Database
-> Starting Discovery
-> Starting Cert Volume
-> Starting Proxy
-> Starting Swarm Manager
-> Starting Swarm Agent
-> Starting Controller
Shipyard available at http://192.168.190.147:8080
Username: admin Password: shipyard
# 如果想将安装重新来一遍
# for i in `docker ps |sed '1d'| awk '{print $NF}'`;do docker rm -f $i; done
# 停止运行镜像
# docker stop shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller
# 启动运行的镜像
# docker start shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller
# 查看运行的docker进程
# docker ps
# 查看下载的镜像
# docker images
# 增加节点
[root@localhost ~]# curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://192.168.190.147:4001 bash -s
Adding Node
-> Starting Cert Volume
-> Starting Proxy
-> Starting Swarm Manager
-> Starting Swarm Agent
Node added to Swarm: 192.168.190.148
防爬虫原文链接:http://www.cnblogs.com/caoguo/p/5735189.html