Docker GUI之Shipyard
官方网站:
国内镜像源:
环境:
CentOS7.1
docker-engine-1.11.2
说明:以下安装全部在相同的一台主机上,如果是多台主机则需要另行考虑,如:docker的监听方式,集群环境需要由socket监听转换为ip:port
Datastore(rethinkdb)
提示:可以使用国内源index.tenxcloud.com/docker_library/rethinkdb
docker run -tid
Discovery(etcd)
docker run -tid
提示:服务发现,自动注册的服务consol更受欢迎
Proxy(docker-proxy)
docker run -tid
提示:此为可选项
Swarm
Manager(swarm)
提示:可以使用国内源index.tenxcloud.com/docker_library/swarm:latest
docker run -tid
Swarm
Agent(swarm)
docker run -tid
Controller(shipyard)
docker run -tid
这个就是web GUI控制台192.168.192.10:8080
注意:shipyard控制台默认的用户名和密码为admin/shipyard
修改docker监听方式(socket-->tcp)
sed -i '/-H/s#-H
fd://#-H tcp://0.0.0.0:2375 -H
unix:///var/run/docker.sock#'
/lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
root@node-a:~#docker ps
CONTAINER ID
IMAGE
COMMAND
CREATED
STATUS
PORTS
NAMES
3851aad4ba2e
shipyard/shipyard:latest
"/bin/controller ser 13
seconds ago
Up 12 seconds
0.0.0.0:8080->8080/tcp
shipyard-controller
1700d221a3eb
index.tenxcloud.com/docker_library/swarm:latest
"/swarm join --addr
2 minutes ago
Up 2 minutes
2375/tcp
shipyard-swarm-agent
07ae12361206
index.tenxcloud.com/docker_library/swarm:latest
"/swarm manage --hos 3
minutes ago
Up 3 minutes
2375/tcp
shipyard-swarm-manager
2fdaf73b5aa3
index.tenxcloud.com/docker_library/rethinkdb
"rethinkdb
--bind al 12 minutes ago
Up 12 minutes
8080/tcp,
28015/tcp, 29015/tcp
shipyard-rethinkdb
e70a2b3c08cf
shipyard/docker-proxy:latest
"/usr/local/bin/run" About an
hour ago Up 25 minutes
0.0.0.0:2375->2375/tcp
shipyard-proxy
acab43246348
microbox/etcd
"/bin/etcd -name dis
About an hour ago Up 25
minutes
0.0.0.0:4001->4001/tcp, 0.0.0.0:7001->7001/tcp
shipyard-discovery
可以实现容器,镜像,集群节点,registry,账号,事件的管理,非常简洁
Controller(shipyard-cli)
docker run -it
shipyard/shipyard-cli
shipyard命令行接口
root@node-a:~#docker run -it
shipyard/shipyard-cli
shipyard cli> shipyard
login
URL:
http://192.168.192.10:8080
Username: admin
Password:
shipyard cli>
shipyard
NAME:
USAGE:
VERSION:
COMMANDS:
GLOBAL OPTIONS: