安装Docker管理图形管理工具Shipyard

修改Docker配置文件 /etc/sysconfig/docker (这是CentOS7中Docker配置文件路径)


OPTIONS='--selinux-enabled --log-driver=journald'
改为
OPTIONS='--selinux-enabled --log-driver=journald -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock'

修改配置后重启docker服务

$ sudo systemctl restart docker.service

部署

  • 使用Shipyard官方的自动部署工具 (使用root用户运行)
# curl -s https://shipyard-project.com/deploy | bash -s

这一步会比较慢,因为要下载docker镜像,并且会创建六个docker容器,如下:

$ sudo docker ps
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                                            NAMES
5842c833d531        shipyard/shipyard:latest       "/bin/controller --de"   22 minutes ago      Up 5 minutes        0.0.0.0:8080->8080/tcp                           shipyard-controller
c29f582f75b3        swarm:latest                   "/swarm j --addr 192."   22 minutes ago      Up 5 minutes        2375/tcp                                         shipyard-swarm-agent
2bade64ec433        swarm:latest                   "/swarm m --replicati"   22 minutes ago      Up 5 minutes        2375/tcp                                         shipyard-swarm-manager
3b242f48c93c        shipyard/docker-proxy:latest   "/usr/local/bin/run"     24 minutes ago      Up 5 minutes        0.0.0.0:2375->2375/tcp                           shipyard-proxy
696af41c8bee        alpine                         "sh"                     24 minutes ago      Up 5 minutes                                                         shipyard-certs
ad051758e4bd        microbox/etcd:latest           "/bin/etcd -addr 192."   24 minutes ago      Up 5 minutes        0.0.0.0:4001->4001/tcp, 0.0.0.0:7001->7001/tcp   shipyard-discovery
dfcc71dbaefb        rethinkdb                      "rethinkdb --bind all"   26 minutes ago      Up 5 minutes        8080/tcp, 28015/tcp, 29015/tcp                   shipyard-rethinkdb

测试

访问 “http://:8080”,使用“admin/shipyard”登录。

参考:
- https://shipyard-project.com/docs/deploy/


转载请以链接形式标明本文链接
本文链接:http://blog.csdn.net/kongxx/article/details/53509460

Logo

更多推荐