[TOC] # 安装shipyard ##下载镜像 ``` docker pull rethinkdb docker pull microbox/etcd docker pull shipyard/docker-proxy docker pull swarm docker pull dockerclub/shipyard ``` ## 查看镜像 `docker images` ## 中文脚本 ``` wget https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy ``` ##替换官方脚本为中文脚本 ``` grep -n shipyard:latest deploy sed -i 's/shipyard\\/shipyard:latest/dockerclub\\/shipyard:latest/g' deploy ``` ## 修改默认脚本 > 默认会用到8080端口和2375端口,分别修改为18080和12375 ``` vi deploy ``` ![](https://img.kancloud.cn/ca/d1/cad1a8c5900d022b903687e23db30d08_301x370.png) ![](https://img.kancloud.cn/87/af/87af7b5d482a4e5e0718e3e7ad674823_381x247.png) ## 安装 `sh deploy` ## 卸载 `cat deploy | ACTION=remove bash` # 集群加入 > 增加其他docker节点 ``` curl -sSL https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy | ACTION=node DISCOVERY=etcd://192.168.111.100:4001 bash -s ``` ![](https://img.kancloud.cn/1a/12/1a12d0d3a4c8f816f00f3c482c128769_1350x613.png) ## 账户 > 安装成功后会显示账号和密码,Username: admin Password: shipyard # 运行截图 ![](https://img.kancloud.cn/ba/9e/ba9e019754f08f72086692a200e2c356_746x594.png) ![](https://img.kancloud.cn/81/9a/819ad13b392f4ff827c703b816b92ffb_1345x616.png) ![](https://img.kancloud.cn/93/c1/93c1e10ec752fa64f3f682fe2abf3ace_1899x791.png) ![](https://img.kancloud.cn/aa/d2/aad276e3d7a9c267c24b262ebec6d236_1914x765.png) ![](https://img.kancloud.cn/c1/a4/c1a4d1d7ff28d6edeb353a69cf5f9b96_1894x911.png)