• Docker 下安装Docker可视化轻量管理工具 shipyard汉化版


    最近需要一个可视化的Docker 管理工具,选择了轻量化的Shipyard

    一、拉取镜像

    docker pull rethinkdb
    docker pull microbox/etcd
    docker pull shipyard/docker-proxy
    docker pull swarm
    docker pull dockerclub/shipyard
    

    二、安装中文脚本

    更换安装脚本

    wget https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy
    grep -n shipyard:latest deploy
    sed -i 's/shipyard/shipyard:latest/dockerclub/shipyard:latest/g' deploy
    

    修改安装脚本
    vim deploy

    修改安装端口

    ACTION=${ACTION:-deploy}
    IMAGE=${IMAGE:-dockerclub/shipyard:latest}
    PREFIX=${PREFIX:-shipyard}
    SHIPYARD_ARGS=${SHIPYARD_ARGS:-""}
    TLS_CERT_PATH=${TLS_CERT_PATH:-}
    CERT_PATH="/etc/shipyard"
    PROXY_PORT=${PROXY_PORT:-2375}                  #可修改,我这里使用默认端口
    SWARM_PORT=3375
    SHIPYARD_PROTOCOL=http
    SHIPYARD_PORT=${PORT:-8088}                     #默认8080,我这里改成8088
    SHIPYARD_IP=${IP}
    DISCOVERY_BACKEND=etcd
    DISCOVERY_PORT=4001
    DISCOVERY_PEER_PORT=7001
    ENABLE_TLS=0
    CERT_FINGERPRINT=""
    LOCAL_CA_CERT=""
    LOCAL_SSL_CERT=""
    LOCAL_SSL_KEY=""
    LOCAL_SSL_CLIENT_CERT=""
    LOCAL_SSL_CLIENT_KEY=""
    SSL_CA_CERT=""
    SSL_CERT=""
    

    运行安装脚本

    sh deploy

    安装成功

    三、增加节点

    在其他节点服务器下运行

    curl -sSL https://raw.githubusercontent.com/shipyard/shipyard-project.com/master/site/themes/shipyard/static/deploy | ACTION=node DISCOVERY=etcd://192.168.1.1:1001 bash -s
    
    
  • 相关阅读:
    tcpip协议
    Linux特殊文件使用原理
    shell之常用内置变量
    SSM框架CRUD小案例
    个人博客开发笔记
    蓝天筹项目开发记录
    二叉平衡树AVL的插入与删除(java实现)
    二叉搜索树(java实现)
    树的基本操作
    SQL连接
  • 原文地址:https://www.cnblogs.com/shook/p/13516241.html
Copyright © 2020-2023  润新知