部署Web管理界面

使用Cockpit:

cockpit是一个服务器管理软件,功能很强大,强大到甚至可以管理docker

centOS安装:

yum install cockpit cockpit-docker cockpit-storaged cockpit-networkmanager
ubuntu安装:
add-apt-repository ppa:cockpit-project/cockpit
apt-get -y install cockpit cockpit-docker cockpit-storaged cockpit-networkmanager
后两个选装,都是插件,查看所有插件:
yum list | grep cockpit
用服务/守护进程管理器启动 Cockpit 服务
systemctl start cockpit
systemctl enable cockpit.socket
默认使用https且监听9090端口

界面一览: title


使用shipyard:

curl -sSL https://shipyard-project.com/deploy | bash -s

该脚本会占用70018080端口 需手动更改为77778888端口 改好后的:deploy

1)如果想将安装重新来一遍

[root@node-1 ~]# for i in `docker ps |sed '1d'| awk '{print $NF}'`;do docker rm -f $i; done
[root@node-1 ~]# docker stop `docker ps -a -q`
[root@node-1 ~]# docker rm `docker ps -a -q`
[root@node-1 ~]# curl -s https://shipyard-project.com/deploy | bash -s
2)停止运行镜像
[root@node-1 ~]# docker stop shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller
3)启动运行的镜像
[root@node-1 ~]# docker start shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller
4)查看运行的docker进程
[root@node-1 ~]# docker ps
title

5)使用自定义shipyard镜像镜像

[root@node-1 ~]# curl -sSL https://shipyard-project.com/deploy | IMAGE=shipyard/shipyard:test bash -s