3.1 下载镜像

docker pull rethinkdb

docker pull microbox/etcd

docker pull shipyard/docker-proxy

docker pull swarm

docker pull shipyard/shipyard

3.2 安装如下docke

docker run  -ti -d --restart=always --name shipyard-rethinkdb  rethinkdb

docker run -ti -d -p 4001:4001 -p 7001:7001 --restart=always --name shipyard-discovery microbox/etcd:latest -name discovery

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 shipyard/docker-proxy:latest

docker run -ti -d --restart=always --name shipyard-swarm-manager swarm:latest manage --host tcp://0.0.0.0:3375 etcd://192.168.XX:4001

docker run -ti -d --restart=always --name shipyard-controller --link shipyard-rethinkdb:rethinkdb --link shipyard-swarm-manager:swarm -p 8090:8080 shipyard/shipyard:latest server -d tcp://swarm:3375

3.3 将所有docker纳入管理

sudo docker run -ti  -d   --restart=always   --name shipyard-swarm-agent    swarm:latest   join --addr 10.0.2.15:2375 etcd://10.0.2.15:4001

3.4 登陆访问页面

http://ip:8090/
用户名:admin
密码:shipyard

3.5 重启 service docker restart docker restart shipyard-controller

 

service docker restart

docker restart shipyard-controller

docker 可视化工具shipyard_docker