centos7 经实验不行,ubuntu14.04可以。
具体步骤参考:https://github.com/shipyard/shipyard
Start a data volume instance of RethinkDB:
docker run -it -d --name shipyard-rethinkdb-data \
--entrypoint /bin/bash shipyard/rethinkdb -l
Start RethinkDB with using the data volume container:
docker run -it -d --name shipyard-rethinkdb \
--volumes-from shipyard-rethinkdb-data shipyard/rethinkdb
Start the Shipyard controller:
docker run -it -p 8080:8080 -d --name shipyard \
--link shipyard-rethinkdb:rethinkdb shipyard/shipyard
Shipyard 要管理和控制 Docker host 的话需要先修改 Docker host 上的默认配置使其支持远程管理。修改配置文件 docker.conf,把 /usr/bin/docker -d 这行加上 -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock 参数:
$
sudo
vi
/etc/init/docker
.conf
description
"Run docker"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
script
/usr/bin/docker
-d -H tcp:
//0
.0.0.0:4243 -H unix:
///var/run/docker
.sock
end script