Shipyard docker cluster

How Shipyardto install a dockercluster, the following text installation process,
using as a test system centos7.

Installation Notes

shipyard installation

The first step in the installation Datastoreaccount password management vessel

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-rethinkdb \
    rethinkdb

The second step to install the cluster discovery Discoveryservice

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

The third step is to install docker-proxythe protocol agent

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

The fourth step installation Swarmmanagement node

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-manager \
    swarm:latest \
    manage --host tcp://0.0.0.0:3375 etcd://<IP-OF-HOST>:4001

The fifth step installation Swarmfrom the node

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-agent \
    swarm:latest \
    join --addr <ip-of-host>:2375 etcd://<ip-of-host>:4001

The final step in the installation Shipyardmanagement interface

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

Access http://[ip-of-host]:8080to access web-ui interface

  • Account: admin
  • Password: shipyard

Increase docker node

export ACTION=node DISCOVERY=etcd://<ip-of-host>:4001
curl -sSL https://shipyard-project.com/deploy | sh

Tips

After installing all of the above steps, please reboot docker Service

systemctl restart docker

display interface as shipyard

9028759-7dc05f36b4fd88b6

9028759-5619fe0d9edd7a1b.png

Guess you like

Origin blog.csdn.net/weixin_34087307/article/details/90839997