• 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

  • 相关阅读:
    Dede CMS如何在文章中增加“附件下载”操作说明
    仿站模仿的三个网站
    PHP面相对象中的重载与重写
    面向对象思想
    最常用的正则表达式
    PHP第二阶段学习 一、php的基本语法
    PHP isset()与empty()的使用区别详解
    mysql索引总结----mysql 索引类型以及创建
    MySQL实现当前数据表的所有时间都增加或减少指定的时间间隔
    T-SQL语句以及几个数据库引擎
  • 原文地址:https://www.cnblogs.com/yuan1978/p/6249584.html
Copyright © 2020-2023  润新知