How
Shipyard
to install adocker
cluster, the following text installation process,
using as a test system centos7.
Installation Notes
- docker mounted
refer to the official installation instructions docker the install
shipyard installation
The first step in the installation Datastore
account password management vessel
docker run \
-ti \
-d \
--restart=always \
--name shipyard-rethinkdb \
rethinkdb
The second step to install the cluster discovery Discovery
service
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-proxy
the 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 Swarm
management 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 Swarm
from 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 Shipyard
management 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]:8080
to 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