拉相关依赖镜像
docker pull rethinkdb
docker pull microbox/etcd
docker pull shipyard/docker-proxy
docker pull swarm:latest
docker pull shipyard/shipyard
rethinkdb
docker run -ti -d \
--restart=always \
--name shipyard-rethinkdb \
-p 8082:8080 \
-p 28015:28015 \
-p 29015:29015 \
-v /data/rethinkdb:/data \
rethinkdb:latest
microbox/etcd
docker run \
-ti \
-d \
-p 4001:4001 \
-p 7001:7001 \
--restart=always \
--name shipyard-discovery \
microbox/etcd -name discovery
docker-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 \
shipyard/docker-proxy:latest
shipyard-swarm-manager
docker run \
-ti \
-d \
--restart=always \
--name shipyard-swarm-manager \
swarm:latest \
manage --host tcp://0.0.0.0:3375 etcd://192.168.1.237:4001
shipyard-swarm-agent
docker run \
-ti \
-d \
--restart=always \
--name shipyard-swarm-agent \
swarm:latest \
join --addr 192.168.1.237:2375 etcd://192.168.1.237:4001
启动shipyard-controller
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
访问shipyard
参考文章
网友评论