zoukankan      html  css  js  c++  java
  • ubuntu-docker-etcd-swarm-shipyard-portainer

    --- env ---

    root@node1:~# cat /etc/issue
    Ubuntu 12.04.4 LTS l

    root@node1:~# docker -v
    Docker version 1.12.3, build 6b644ec

    node1, etcd, shipyard, portainer = 172.18.0.78

    node2 = 172.18.0.86

    node3 = 172.18.0.4

    --- etcd ---

    [node1]

    HOSTIP=172.18.0.78

    docker run -d -v /etc/ssl/certs:/etc/ssl/certs -p 4001:4001 -p 2380:2380 -p 2379:2379  --name etcd quay.io/coreos/etcd:v2.2.0  -name etcd0  -advertise-client-urls http://${HOSTIP}:2379,http://${HOSTIP}:4001  -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001  -initial-advertise-peer-urls http://${HOSTIP}:2380  -listen-peer-urls http://0.0.0.0:2380  -initial-cluster-token etcd-cluster-1  -initial-cluster etcd0=http://${HOSTIP}:2380  -initial-cluster-state new

    --- master ---

    [node1]

    docker run -d -p 3375:3375 --name shipyard-swarm-manager swarm:latest manage --host tcp://0.0.0.0:3375 etcd://172.18.0.78:2379/swarm 

    --- agent ---

    [node1]

    docker run -d --name shipyard-swarm-agent swarm:latest join --addr 172.18.0.78:2375 etcd://172.18.0.78:2379/swarm

    [node2]

    docker run -d --name shipyard-swarm-agent swarm:latest join --addr 172.18.0.86:2375 etcd://172.18.0.78:2379/swarm

    [node3]

    docker run -d --name shipyard-swarm-agent swarm:latest join --addr 172.18.0.4:2375 etcd://172.18.0.78:2379/swarm

    --- shipyard ---

    [node1]

    docker run -d --name shipyard-rethinkdb rethinkdb

    (docker run -d --name shipyard-rethinkdb -v /rethinkdb/data:/data rethinkdb)

    docker run -d --name shipyard-controller --link shipyard-rethinkdb:rethinkdb -P shipyard/shipyard:latest server -d tcp://172.18.0.78:3375

    --- portainer ---

    [node1]

    docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

  • 相关阅读:
    NOI2015 品酒大会
    网络流算法进阶详解
    ZROJ 1267 我要打数论
    后缀自动机构建图解
    WC集训DAY2笔记 组合计数 part.1
    最小割的数学模型
    二次剩余学习笔记
    Hadoop:eclipse配置hadoop-eclipse-plugin(版本hadoop2.7.3)
    MapReduce:实现文档倒序排序,且字符串拼接+年+月+日
    MapReduce:汇总学生表和成绩表为----学生成绩表
  • 原文地址:https://www.cnblogs.com/yuan1978/p/6249584.html
Copyright © 2011-2022 走看看