Shipyard是在Docker Swarm實現對容器、鏡像、docker集羣、倉庫、節點進行管理的web系統。web
本次安裝環境是Centos7,如下是安裝步驟:docker
1)設置防火牆瀏覽器
沒有設置防火牆會致使Shipyard安裝後沒法鏈接本地容器和鏡像。tomcat
firewall-cmd --zone=public --permanent --add-port=2375/tcp firewall-cmd --reload
不建議直接關閉防火牆。bash
2)下載安裝腳本tcp
wget https://shipyard-project.com/deploy
3)修改安裝腳本,改成安裝中文鏡像code
grep -n shipyard:latest deploy sed -i 's/shipyard\/shipyard:latest/dockerclub\/shipyard:latest/g' deploy
4)修改默認端口ip
shipyard的默認端口是8080,這個可能會與其餘軟件有衝突,特別是tomcat的默認端口也是8080,所以建議修改。get
執行如下命令,用其餘端口代替8080cmd
SHIPYARD_PORT=${PORT:-8080}
5)安裝
sh deploy
安裝過程當中,Shipyard會下載如下鏡像
docker pull alpine docker pull library/rethinkdb docker pull microbox/etcd docker pull shipyard/docker-proxy docker pull swarm docker pull shipyard/shipyard
6)使用
安裝成功後可在瀏覽器訪問 http://主機IP:8080,默認帳號密碼admin/shipyard