• CentOS7 Install Shipyard


    # 采集木jj

    原文:http://www.cnblogs.com/caoguo/p/5735189.html

    # CentOS7 Install Shipyard
    # yum install docker
    # systemctl restart docker
    # docker login -u user-p password -e sample.aliyun.com registry.aliyuncs.com

    # 上面docker加速一大段实际就下面这一句
    # vi /etc/sysconfig/docker
    # ADD_REGISTRY='--add-registry xxx.mirror.aliyuncs.com'


    $ docker pull alpine
    $ docker pull library/shipyard
    $ docker pull library/rethinkdb
    $ docker pull microbox/etcd
    $ docker pull shipyard/docker-proxy
    $ docker pull swarm
    $ docker pull shipyard/shipyard


    $ curl -s 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

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

    # 如果想将安装重新来一遍
    # for i in `docker ps |sed '1d'| awk '{print $NF}'`;do docker rm -f $i; done

    # 停止运行镜像
    # docker stop shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller

    # 启动运行的镜像
    # docker start shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller

    # 查看运行的docker进程
    # docker ps

    # 查看下载的镜像
    # docker images


    # 增加节点
    [root@localhost ~]# curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://192.168.190.147:4001 bash -s
    Adding Node
    -> Starting Cert Volume
    -> Starting Proxy
    -> Starting Swarm Manager
    -> Starting Swarm Agent
    Node added to Swarm: 192.168.190.148

    防爬虫原文链接:http://www.cnblogs.com/caoguo/p/5735189.html

  • 相关阅读:
    Zepto跨域请求
    C语言中浮点数的比较
    IOS开源项目Telegram初试
    Java NIO初试
    ios8.0之后注册通知中心
    spring AOP的配置
    IOS学习日记-2014年10月25日
    struct框架中实体类中属性的类型错误问题
    Oracle存储过程使用DML语句问题
    跳出类似framset 嵌入式框架
  • 原文地址:https://www.cnblogs.com/caoguo/p/5735189.html
Copyright © 2020-2023  润新知