docker可视化管理工具shipyard搭建

1.安装shipyard

  • 下载依赖镜像
docker pull rethinkdb
docker pull microbox/etcd
docker pull shipyard/docker-proxy
docker pull swarm
docker pull dockerclub/shipyard

20200117173348.jpg

  • 下载官方运行脚本 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端口 如果不想使用这两个端口可以修改 这里我改成8006与12375端口 vim deploy

20200117173758.jpg

  • 运行安装脚本 sh deploy 安装成功 Username: admin Password: shipyard

  • 配置Nginx (通过ip访问可省略) 20200117174035.jpg

  • 通过浏览器访问 20200117174107.jpg

  • 卸载 cat deploy | ACTION=remove bash

2.集群管理 增加docker集群节点,只需要在节点服务器运行如下语句即可

curl -sSL https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy | ACTION=node DISCOVERY=etcd://<你的服务器ip>:4001 bash -s
# docker 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×