Image Preparation
Shipyard database used for data storage
Docker pull docker.io/rethinkdb
//Use Swarm to manage Docker cluster Docker pull
docker.io/ Swarm
//shipyard Mirror
Docker pull Docker.io/shipyard/shipyard
Install start rethinkdb
Docker run-ti-d \
--restart=always \
--name shipyard-rethinkdb \-
p 8082:8080 \
p 28015:28015 \
-p 29015:29015 \
-v/data/rethinkdb:/data \
docker.io/rethinkdb:latest
--restart=always: Always restarts (set as required)-P 8,082:8,080: exposes 8082 ports for viewing RETHINKDB usage docker.io/rethinkdb:latest:rethinkdb mirroring
Keep 8082 port, can be viewed through the Web page rethinkdb usage, I install RETHINKDB host is 10.0.11.150, so access: http://10.0.11.150:8082 display as follows:
Swarm installation Start
We need to swarm the Docker single-body together to form a cluster, between the installation of swarm and the operation of the use of important, so a separate article, you can follow the steps to swarm installation and launch: Through the swarm to build a docker cluster. Start the Shipyard management tool
Docker run-ti-d \
--restart=always \
--name shipyard-controller \
--link shipyard-rethinkdb:rethinkdb \< C3/>--link shipyard-swarm-manager:swarm \-
p 8081:8080 \
docker.io/shipyard/shipyard:latest \
server-d tcp://swarm:3375
--link SHIPYARD-RETHINKDB:RETHINKDB: Association RETHINKDB Database Container, so RETHINKDB container starts before shipyard.
--link Shipyard-swarm-manager:swarm: Association swarm container.
Boot order
The RTHINKDB database and the swarm cluster are required for shipyard startup, so the boot order of the container is important, so it is best to start the container in the following boot order to avoid unnecessary problems.
RETHINKDB Database Container
Swarm Agent Node Container
Swarm Manager Container
Shipyard Container