赞
踩
下载依赖镜像
- docker pull rethinkdb
- docker pull microbox/etcd
- docker pull shipyard/docker-proxy
- docker pull swarm
- docker pull dockerclub/shipyard
将原先脚本修改为中文脚本
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端口
vim deploy
运行安装脚本
sh deploy
卸载
cat deploy | ACTION=remove bash
安装成功 Username: admin Password: shipyard
通过浏览器访问 本机ip:18080
安装成功
增加docker集群节点,只需要在节点服务器运行如下语句即可
curl -sSL https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy | ACTION=node DISCOVERY=etcd://192.168.112.135:4001 bash -s
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。