www.icesr.com
IT运维工程师的摇篮

Docker可视化管理工具shipyard安装

安装shipyard

<code>curl <span class="hljs-operator">-s</span>SL http://dockerclub.net/public/script/deploy |  bash <span class="hljs-operator">-s</span>                      ==&gt; 中文版
curl <span class="hljs-operator">-s</span>SL https://shipyard-project.com/deploy | bash <span class="hljs-operator">-s</span>                              ==&gt; 英文版</code>

如果出现错误,可以重新安装一遍

<code><span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> `docker ps |sed <span class="hljs-string">'1d'</span>| awk <span class="hljs-string">'{print $NF}'</span>`;<span class="hljs-keyword">do</span> docker rm <span class="hljs-operator">-f</span> <span class="hljs-variable">$i</span>; <span class="hljs-keyword">done</span>
docker stop `docker ps <span class="hljs-operator">-a</span> -q`
docker rm `docker ps <span class="hljs-operator">-a</span> -q`
curl <span class="hljs-operator">-s</span> https://shipyard-project.com/deploy | bash <span class="hljs-operator">-s</span></code>

停止运行shipyard镜像

<code>docker stop shipyard<span class="hljs-attribute">-proxy</span> shipyard<span class="hljs-attribute">-certs</span> shipyard<span class="hljs-attribute">-discovery</span> shipyard<span class="hljs-attribute">-rethinkdb</span> shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-agent</span> shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-manager</span> shipyard<span class="hljs-attribute">-controller</span></code>

启动shipyard镜像

<code>docker start shipyard<span class="hljs-attribute">-proxy</span> shipyard<span class="hljs-attribute">-certs</span> shipyard<span class="hljs-attribute">-discovery</span> shipyard<span class="hljs-attribute">-rethinkdb</span> shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-agent</span> shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-manager</span> shipyard<span class="hljs-attribute">-controller</span></code>

查看docker进程

<code>Mason:Desktop yangyue$ docker ps
CONTAINER ID        IMAGE                          COMMAND                  CREATED              STATUS              PORTS                                            NAMES
de77fa33682e        shipyard/shipyard:latest       <span class="hljs-string">"/bin/controller -..."</span>   About a minute ago   Up About a minute   <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">8080</span><span class="hljs-subst">-&gt;</span><span class="hljs-number">8080</span>/tcp                           shipyard<span class="hljs-attribute">-controller</span>
<span class="hljs-number">29</span>a567ad74f6        swarm:latest                   <span class="hljs-string">"/swarm j --addr 1..."</span>   <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes        <span class="hljs-number">2375</span>/tcp                                         shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-agent</span>
<span class="hljs-number">51</span>d9ff256ccd        swarm:latest                   <span class="hljs-string">"/swarm m --replic..."</span>   <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes        <span class="hljs-number">2375</span>/tcp                                         shipyard<span class="hljs-attribute">-swarm</span><span class="hljs-attribute">-manager</span>
e9e7a2419d04        shipyard/docker<span class="hljs-attribute">-proxy</span>:latest   <span class="hljs-string">"/usr/local/bin/run"</span>     <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes        <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">2375</span><span class="hljs-subst">-&gt;</span><span class="hljs-number">2375</span>/tcp                           shipyard<span class="hljs-attribute">-proxy</span>
<span class="hljs-number">06</span>b50d73d307        alpine                         <span class="hljs-string">"sh"</span>                     <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes                                                         shipyard<span class="hljs-attribute">-certs</span>
ba4f38091cee        microbox/etcd:latest           <span class="hljs-string">"/bin/etcd -addr 1..."</span>   <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes        <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">4001</span><span class="hljs-subst">-&gt;</span><span class="hljs-number">4001</span>/tcp, <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">7001</span><span class="hljs-subst">-&gt;</span><span class="hljs-number">7001</span>/tcp   shipyard<span class="hljs-attribute">-discovery</span>
<span class="hljs-number">94940</span>a9c754d        rethinkdb                      <span class="hljs-string">"rethinkdb --bind all"</span>   <span class="hljs-number">2</span> minutes ago        Up <span class="hljs-number">2</span> minutes        <span class="hljs-number">8080</span>/tcp, <span class="hljs-number">28015</span>/tcp, <span class="hljs-number">29015</span>/tcp                   shipyard<span class="hljs-attribute">-rethinkdb</span></code>

未经允许不得转载:冰点网络 » Docker可视化管理工具shipyard安装

分享到:更多 ()

评论 抢沙发

评论前必须登录!