centos 7.2 安装shipyard

作者: 你清澈又神秘 | 来源:发表于2017-08-02 16:26 被阅读58次

基础环境需要安装docker(这里不做介绍)

自动安装

使用自动部署Shell脚本

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

结果如下

[root@contract ~]# curl -sSL https://shipyard-project.com/deploy | bash -s
Deploying Shipyard
 -> Starting Database
 -> Starting Discovery
 -> Starting Cert Volume
 -> Starting Proxy
 -> Starting Swarm Manager
 -> Starting Swarm Agent
 -> Starting Controller
Waiting for Shipyard on 10.2.2.11:8080

Shipyard available at http://10.2.2.11:8080
Username: admin Password: shipyard

不出问题的话就说明安装完毕了,通过IP:8080 访问

访问界面

常见的错误

  • 执行完自动部署脚本后发现容器名shipyard-rethinkdb被占用
[root@contract ~]#  curl -sSL https://shipyard-project.com/deploy | bash -s
Deploying Shipyard
 -> Starting Database
docker: Error response from daemon: Conflict. The container name "/shipyard-rethinkdb" is already in use by container "4168730dbc8cb055562965b1ee129047ad337158ff2593480fbf3b4088551024". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

解决方法:

删除所有相关的容器即可。

docker stop $(docker ps -a- q)
docker rm $(docker ps -a -q)

这里由于我第一次安装没有其他容器,因此我是删除了所有容器

  • 启动容器是报网络错误
restartmanger wait error: driver failed programming external connectivity on endpoint shipyard-controller (5522daa5d553912455f36fef6abd42823230a6741f93593fc2b77e2cacb98031):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.17.0.3:8080 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))

这是因为docker程序没有在iptables里创建相应的链(chain),所以需要重启iptables和docker的服务。

service iptables restart
service docker restart

相关文章

  • centos 7.2 安装shipyard

    基础环境需要安装docker(这里不做介绍) 自动安装 使用自动部署Shell脚本 结果如下 不出问题的话就说明安...

  • 服务架设-CentOS7下编译安装 PHP7

    Centos7.2 编译安装PHP7 PHP7,编译安装: 环境:centos7.2 (注意:因为我用的ng...

  • [转]CentOS安装NodeJS

    CentOS安装NodeJS在CentOS下安装NodeJS有以下几种方法。使用的CentOS版本为7.2。Cen...

  • fastdfs-nginx-module安装

    前提:已成功安装fastdfs, Fastdsf在centos7.2下的安装 参考:Centos7安装FastDF...

  • CentOS7上安装Python3

    Linux(CentOS7)上面安装Python3 安装Python3 环境 安装CentOS 7.2最小系统(C...

  • 编译安装PHP开发环境

    Linux 系统为 CentOS 7.2 1. 安装 Nginx 安装 Nginx 依赖包: 安装 Nginx: ...

  • Shipyard docker集群

    如何使用Shipyard安装一个docker的集群,以下为此文安装过程,使用centos7作为测试系统。 安装说明...

  • Shipyard docker集群

    如何使用Shipyard安装一个docker的集群,以下为此文安装过程,使用centos7作为测试系统。 安装说明...

  • Shipyard docker集群

    如何使用Shipyard安装一个docker的集群,以下为此文安装过程,使用centos7作为测试系统。 安装说明...

  • Shipyard docker集群

    如何使用Shipyard安装一个docker的集群,以下为此文安装过程,使用centos7作为测试系统。 安装说明...

网友评论

    本文标题:centos 7.2 安装shipyard

    本文链接:https://www.haomeiwen.com/subject/nbhylxtx.html