• ubuntu-docker-consul-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, consul, shipyard, portainer = 172.18.0.78

    node2 = 172.18.0.86

    node3 = 172.18.0.4

    --- consul ---

    [node1]

    docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise=172.18.0.78

    --- master ---

    [node1]

    docker run -d -p 4000:4000 swarm manage -H :4000 --replication --advertise 172.18.0.78:4000 consul://172.18.0.78:8500

    [node2]

    docker run -d -p 4000:4000 swarm manage -H :4000 --replication --advertise 172.18.0.86:4000 consul://172.18.0.78:8500 

    --- agent ---

    [node1]

    docker run -d swarm join --advertise=172.18.0.78:2375 consul://172.18.0.78:8500

    [node2]

    docker run -d swarm join --advertise=172.18.0.86:2375 consul://172.18.0.78:8500 

    [node3]

    docker run -d swarm join --advertise=172.18.0.4:2375 consul://172.18.0.78:8500

    --- 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:4000

    --- portainer ---

    [node1]

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

  • 相关阅读:
    vijos 1379 字符串的展开
    BZOJ 4597 随机序列
    BZOJ 2303 方格染色
    BZOJ 2654 tree
    BZOJ 4198 荷马史诗
    BZOJ 1555 KD之死
    不重复数字
    Rails
    Train Problem I
    Key Set HDU
  • 原文地址:https://www.cnblogs.com/yuan1978/p/6255681.html
Copyright © 2020-2023  润新知