美文网首页
Docker安装shipyard详解

Docker安装shipyard详解

作者: 爱学习的蹭蹭 | 来源:发表于2019-11-22 09:49 被阅读0次

    拉相关依赖镜像

    docker pull rethinkdb
    docker pull microbox/etcd 
    docker pull shipyard/docker-proxy
    docker pull swarm:latest
    docker pull shipyard/shipyard
    

    rethinkdb

     docker run -ti -d \
     --restart=always \
     --name shipyard-rethinkdb \
     -p 8082:8080 \
     -p 28015:28015 \
     -p 29015:29015 \
     -v /data/rethinkdb:/data \
     rethinkdb:latest
    

    microbox/etcd

    docker run \
    -ti \
    -d \
    -p 4001:4001 \
    -p 7001:7001 \
    --restart=always \
    --name shipyard-discovery \
    microbox/etcd -name discovery
    

    docker-proxy

    docker run \
    -ti \
    -d \
    -p 2375:2375 \
    --hostname=$HOSTNAME \
    --restart=always \
    --name shipyard-proxy \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e PORT=2375 \
    shipyard/docker-proxy:latest
    

    shipyard-swarm-manager

    docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-manager \
    swarm:latest \
    manage --host tcp://0.0.0.0:3375 etcd://192.168.1.237:4001
    

    shipyard-swarm-agent

    docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-agent \
    swarm:latest \
    join --addr 192.168.1.237:2375 etcd://192.168.1.237:4001
    

    启动shipyard-controller

    docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-controller \
    --link shipyard-rethinkdb:rethinkdb \
    --link shipyard-swarm-manager:swarm \
    -p 8080:8080 \
    shipyard/shipyard:latest \
    server \
    -d tcp://swarm:3375
    

    访问shipyard

    • 访问http://IP :8080,输入默认用户名和密码:admin/shipyard

    参考文章

    相关文章

      网友评论

          本文标题:Docker安装shipyard详解

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