shipyard集群安装

#在shipyard主节点部署shipyard-rethinkdb

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-rethinkdb \
    docker-1:5000/rethinkdb

#在shipyard主节点部署shipyard-discovery

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

#在shipyard主节点部署shipyard-swarm-manager

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

#在shipyard主节点部署shipyard-controller

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

#在各docker Damon节点部署shipyard-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 \
    docker-1:5000/shipyard-docker-proxy:latest

#在各docker Damon节点部署shipyard-swarm-agent

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-agent \
    docker-1:5000/swarm:latest \
    join --addr <本机(shipyard-proxy)ip>:2375 etcd://12.1.1.24:4001


#测试

http://主节点 ip:8080

登录:admin/shipyard

你可能感兴趣的:(shipyard,集群安装)