centos7 經實驗不行,ubuntu14.04能夠。git
具體步驟參考:https://github.com/shipyard/shipyardgithub
Start a data volume instance of RethinkDB:docker
docker run -it -d --name shipyard-rethinkdb-data \ --entrypoint /bin/bash shipyard/rethinkdb -l
Start RethinkDB with using the data volume container:ubuntu
docker run -it -d --name shipyard-rethinkdb \ --volumes-from shipyard-rethinkdb-data shipyard/rethinkdb
Start the Shipyard controller:centos
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 參數:bash
$
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