服务器维护,服务器代维,安全设置,漏洞扫描,入侵检测服务

dirtysea 发表于 2017-11-29 10:52:31

使用GitLab、Jenkins、Docker建立快速持续化集成交付部署方案

<h1 class="post-title entry-title" style="border: 0px none; margin-top: -3px; font-weight: normal; font-stretch: normal; font-size: 24px; line-height: normal; font-family: 'Pontano Sans', sans-serif; color: rgb(0, 0, 204);">使用GitLab、Jenkins、Docker建立快速持续化集成交付部署方案(一)</h1><div><br></div><div><h2 id="-gitlab-jenkins-docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">摘要</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">本系列文章将要完成的:</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">安装GitLab、Jenkins、Docker等一系列基础环境</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">建立自己的 Docker Registry,私有的Docker镜像服务,用于存储我们自己的Docker镜像仓库(Repository)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">使用GitLab进行代码管理,并联动Jenkins进行自动化打包,生成Docker Image,推送到自己的Repository</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">使用Docker Compose在目的机上进行集成环境部署</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><span id="more-2593"></span><br>本系列文章不会包含:Linux、GitLab、Jenkins、Docker等基础概念和知识,不包含Docker swarm、集群、单元测试和自动化测试。</p><h2 style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">文章索引</h2><ol style="border: 0px none; margin-top: 5px; margin-bottom: 5px; margin-left: 30px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612022593.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">GitLab、Jenkins、Docker 初始环境安装</a>(本文)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612042605.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">制作 Docker镜像 及 Docker Compose 的使用</a></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612082623.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">使用 Webhook 自动触发 Jenkins 进行 Docker镜像制作并保存到私有镜像仓库,以及目的机部署</a></li></ol><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">环境版本</h3><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Ubuntu 14.04 LTS</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">GitLab Community Edition 8.13.1</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Docker 1.11, Docker Compose V1,Docker Registry V2</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Jenkins 2.19 LTS</li></ul><h2 id="gitlab-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">GitLab安装</h2><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">简介</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">关于Git的基本知识我就不在这里讲了,有兴趣的可以了解下我之前写的文章:<a href="https://blog.catscarlet.com/201512242173.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">我也讲讲Git</a>。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">GitLab与GitHub十分相似,区别并不是很大。对于想要了解GitHub的可以参见:<a href="https://blog.catscarlet.com/201512252177.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">我再讲讲GitHub</a>。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">比较不同的一点,GitHub中的Pull Request,在GitLab中叫做Merge Request。其实并没有区别,Pull就是要Merge嘛。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">GitLab同样需要生成证书等一系列操作,与GitHub相同,其实都是Git工作流中的必需项。这些内容在刚才提到的链接中都有讲,不在针对GitLab进行描述。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">安装的方法很多,根据天朝的网络情况,这里选择从清华大学的TUNA镜像站下载Gitlab Community Edition:</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><a href="https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">目的机为Ubuntu 14.04,所以这里建议:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b6f2275325213" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 94px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b6f2275325213-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f2275325213-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f2275325213-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f2275325213-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div></div></td><td class="crayon-code" style="border: 0px; width: 970px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b6f2275325213-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;curl&nbsp;https://packages.gitlab.com/gpg.key&nbsp;2&gt;&nbsp;/dev/null&nbsp;|&nbsp;sudo&nbsp;apt-key&nbsp;add&nbsp;-&nbsp;&amp;&gt;/dev/null</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f2275325213-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;echo&nbsp;'deb&nbsp;https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu&nbsp;trusty&nbsp;main'&nbsp;&gt;&gt;&nbsp;/etc/apt/sources.list.d/gitlab-ce.list</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f2275325213-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;update</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f2275325213-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;install&nbsp;gitlab-ce</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">如果要在公司内部安装的话,可能会下载一天的速度都不如拿个U盘拷的情况,所以直接去TUNA的HTTPS服务器上,抠对应的安装包,在家里下载完,之后拿个U盘拷贝更靠谱更靠谱:(<a href="https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/</a>)</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">使用 dpkg -i 对deb包进行安装。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意,GitLab对系统的其他包依赖特别严重,对nginx、postgresql、redis、git等都有严重的依赖。所以建议安装GitLab的服务器即作为代码仓库专用服务器,上面不要随意安装任何其他工具或软件,不要在宿主机上跑其他的服务。Docker除外。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置</h3><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">域名</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">打开/etc/gitlab/gitlab.rb文件.</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">修改服务器地址:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b6f7454737349" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b6f7454737349-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b6f7454737349-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">external</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>url&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'http://your_domain_or_ip.com'</span></div></div></td></tr></tbody></table></div></div></div><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">邮箱</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">新增如下代码以配置邮箱。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">建议配置邮箱系统。GitLab使用用户名和用户邮箱区分用户,均不可重复。管理员新建邮箱时不能指定用户密码,GitLab会向注册邮箱中发送第一次修改密码邮件。之后用户找回密码凭据也是使用邮箱。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b6f9935074978" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 254px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e1e213b6f9935074978-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6f9935074978-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_enable'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">true</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_address'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"smtp.qq.com"</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_port'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">465</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_user_name'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"your_smtp_user_name@qq.com"</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_password'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"your_smtp_user_password"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_authentication'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"login"</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_ssl'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">true</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_enable_starttls_auto'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">true</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'smtp_tls'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">true</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#&nbsp;If&nbsp;your&nbsp;SMTP&nbsp;server&nbsp;does&nbsp;not&nbsp;like&nbsp;the&nbsp;default&nbsp;'From:&nbsp;gitlab@localhost'&nbsp;you</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#&nbsp;can&nbsp;change&nbsp;the&nbsp;'From'&nbsp;with&nbsp;this&nbsp;setting.</span></div><div class="crayon-line" id="crayon-5a1e1e213b6f9935074978-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'gitlab_email_from'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'your_smtp_user_name@qq.com'</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6f9935074978-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gitlab_rails</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'gitlab_email_reply_to'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'your_smtp_user_name@qq.com'</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">如果你对Postfix比较熟悉的话,也可以使用GitLab自带的Postfix做邮箱系统。对于初学者,建议使用其他邮箱的SMTP服务。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">之后执行<strong>&nbsp;gitlab-ctl reconfigure</strong>&nbsp;生效配置</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">注册登录</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">对于非对公众开放的GitLab系统来说,关闭注册系统是必要的。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在Admin Area,点击右侧的 齿轮,点击 Setting,取消勾选 Sign-up Restrictions。注意页面很长,修改完之后到最下方点击保存。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><a href="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap486.png" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;"><img class="alignnone ls_lazyimg" src="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap486.png" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap486.png" alt="" width="991" height="501" lazyloadindexed="1" lazyloadpass="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 1; max-width: 98%; height: 426px; background: none 50% 50% no-repeat;"></a></p><h2 id="-docker" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装Docker</h2><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">一些概念</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker的定义和一些基本概念就不在这里讲了。这里只讲一下为什么要使用Docker,以及为什么会可以与GitLab无冲突的安装到同一台机器上。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker容器即是实质的虚拟环境,容器内包含整个服务所需的所有依赖环境,且运行在其自己的虚拟环境中的,相当于最小化的虚拟机,他的状态不会影响宿主机,反过来宿主机的状态也不会影响到容器。只有容器被设置的端口和存储才能与外部环境通信,剩下的完全是个黑盒,外界看不到,也不关心。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker部署简单,容器从镜像创建,而镜像内包含所需的所有依赖,做到了一个镜像直接部署,就像游戏机一样,插卡即玩,不再需要修改服务器的系统配置。在一定程度上避免了部署人员胡乱搞最后还得开发人员动手的问题。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意Docker镜像是无状态的,而容器是&nbsp;<strong>有状态</strong>&nbsp;但应是&nbsp;<strong>状态不重要</strong>&nbsp;的,容器在运行时生成的数据是被保存在容器内的,这就是说容器内的进程生成的临时文件仍然被存放在容器内,并且当整个容器被删除时也会跟着删除。如果生成的文件包含重要资料,则需要把对应生成的目录指向宿主机目录或者数据卷容器。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">数据卷容器与普通容器没有区别,只不过里面不包含应用进程,只为了保存数据而存在的容器。数据卷容器也是唯一一种<strong>状态重要</strong>&nbsp;的,不要手贱把数据卷删除了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">对于手残党还是把数据挂载到硬盘上吧。</p><h3 id="-docker-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装Docker环境</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker的安装十分简单。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">官方文档:<a href="https://docs.docker.com/engine/installation/linux/ubuntulinux/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://docs.docker.com/engine/installation/linux/ubuntulinux/</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">要把鲸鱼放冰柜,总共分三步:确认自身操作系统内核版本、更新源、安装包。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><a href="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/moby.svg" style="color: rgb(102, 17, 204); text-decoration: none;"><img class="alignnone ls_lazyimg" src="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/moby.svg" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/moby.svg" alt="" width="234" height="150" lazyloadindexed="1" lazyloadpass="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 1; max-width: 98%; height: auto; background: none 50% 50% no-repeat;"></a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">(注意以下操作均在root用户下执行,非root用户请自行sudo或su -。&nbsp;<strong>#</strong>&nbsp;表示提示符,这么做的原因是防止有小白一股脑把大片代码复制粘贴到shell中)</p><ol style="border: 0px none; margin-top: 5px; margin-bottom: 5px; margin-left: 30px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;">确认自身操作系统版本:注意Docker官方并不支持 Ubuntu 14.10 和 15.04,所以建议发行版尽量选择LTS版。<div class="line"><div id="crayon-5a1e1e213b6fd716056214" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 830px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 828px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 62px; width: 828px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 828px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b6fd716056214-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6fd716056214-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div></div></td><td class="crayon-code" style="border: 0px; width: 800px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b6fd716056214-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;uname&nbsp;-r</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6fd716056214-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">3.13.0</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">86</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">generic</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px;">官方也不支持kernal低于3.10的版本。对于内核低于3.10版本的系统,或是升级内核,或是升级操作系统。</p></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;">更新源<div class="line"><p style="border: 0px none; margin-top: 10px;"></p><div id="crayon-5a1e1e213b6ff607392737" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 830px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 828px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 62px; width: 828px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 828px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b6ff607392737-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b6ff607392737-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div></div></td><td class="crayon-code" style="border: 0px; width: 800px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b6ff607392737-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;update</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b6ff607392737-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;install&nbsp;apt-transport-https&nbsp;ca-certificates</span></div></div></td></tr></tbody></table></div></div><p style="border: 0px none; margin-top: 10px;"></p></div><p style="border: 0px none; margin-top: 10px;">更新操作系统证书库和apt对https支持。</p><div class="line"><div id="crayon-5a1e1e213b700593284570" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 830px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 828px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 828px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 828px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b700593284570-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 922px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b700593284570-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-key&nbsp;adv&nbsp;--keyserver&nbsp;hkp://ha.pool.sks-keyservers.net:80&nbsp;--recv-keys&nbsp;58118E89F3A912897C070ADBF76221572C52609D</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px;">添加对应源到本地。</p><p style="border: 0px none; margin-top: 10px;">比如Trusty 14.04 (LTS)的源是:<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">deb https://apt.dockerproject.org/repo ubuntu-trusty main</code>,那么执行</p><div class="line"><div id="crayon-5a1e1e213b701268317579" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 830px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 828px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 62px; width: 828px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 828px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b701268317579-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b701268317579-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div></div></td><td class="crayon-code" style="border: 0px; width: 842px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b701268317579-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;echo&nbsp;'deb&nbsp;https://apt.dockerproject.org/repo&nbsp;ubuntu-trusty&nbsp;main'&nbsp;&gt;&nbsp;/etc/apt/sources.list.d/docker.list</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b701268317579-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;update</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px;"><strong>在这一步你也可以选择其他源,比如阿里的Docker源,不过版本会变得不确定,官方会提供最新的稳定版,现在是1.12,而阿里对Ubutnu提供的是1.11,对CentOS提供的是1.10。虽然我们暂时不会使用新版的一些新特性,但还请注意版本差异会导致一些特性或语义有重大差异,比如swarm。</strong></p></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;">安装<div class="line"><p style="border: 0px none; margin-top: 10px;"></p><div id="crayon-5a1e1e213b702141084422" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 830px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 828px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 828px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 828px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b702141084422-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 800px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b702141084422-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-get&nbsp;install&nbsp;docker-engine</span></div></div></td></tr></tbody></table></div></div><p style="border: 0px none; margin-top: 10px;"></p></div><p style="border: 0px none; margin-top: 10px;">注意,阿里云ECS上被定制的源和发行版可能不叫 docker-engine 而是直接叫 docker,要注意。</p></li></ol><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">针对大陆用户的的一些调整。</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们毕竟是在墙内,去docker hub上拉镜像是十分不现实的,几M的文件拖几个小时之后报个错是很无奈的事情,所以就像我们经常修改apt和yum的source mirror一样,我们要修改docker的registry-mirror</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">对于使用阿里云ECS容器服务的用户,可以使用其自带的加速器配置,内网加速器不仅不消耗出口流量,而且也没有带宽限制。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">地址:<a href="https://cr.console.aliyun.com/#/accelerator" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">加速器</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><a href="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap482.png" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;"><img class="alignnone ls_lazyimg" src="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap482.png" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612022593_gitlab_jenkins_docker_ci_cd_1/snap482.png" alt="" width="868" height="638" lazyloadindexed="1" lazyloadpass="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 1; max-width: 98%; height: 619px; background: none 50% 50% no-repeat;"></a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这个页面藏得很深,很难找到。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">其他用户可以考虑<a href="https://www.daocloud.io/mirror.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">daocloud</a>。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Ubuntu 14.04 对于registry-mirror很容易修改,我们只要在<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">/etc/default/docker</code>这个文件中添加上参数即可,比如:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b704080420556" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b704080420556-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b704080420556-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">DOCKER_OPTS</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"$DOCKER_OPTS&nbsp;--registry-mirror=https://aliyuncssucks.mirror.aliyuncs.com"</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">而对于支持systemctl的新版Ubuntu和CentOS,我们要修改对应的docker.service中的ExecStart。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b706317817390" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 174px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b706317817390-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b706317817390-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b706317817390-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b706317817390-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b706317817390-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b706317817390-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b706317817390-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b706317817390-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b706317817390-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b706317817390-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ExecStart</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">usr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">bin</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">current</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">daemon</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b706317817390-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">exec</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">opt</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">native</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.cgroupdriver</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">systemd</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line" id="crayon-5a1e1e213b706317817390-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$OPTIONS</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b706317817390-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$DOCKER_STORAGE_OPTIONS</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line" id="crayon-5a1e1e213b706317817390-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$DOCKER_NETWORK_OPTIONS</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b706317817390-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$ADD_REGISTRY</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line" id="crayon-5a1e1e213b706317817390-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$BLOCK_REGISTRY</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b706317817390-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$INSECURE_REGISTRY</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span></div><div class="crayon-line" id="crayon-5a1e1e213b706317817390-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">registry</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">mirror</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">https</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">aliyuncssucks</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.mirror</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">相关文档:<a href="https://docs.docker.com/engine/admin/systemd/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://docs.docker.com/engine/admin/systemd/</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">官方还有另一种修改方式,依靠Daemon configuration file。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">看起来应该是更方便的方法,但是没有尝试过。有试过的朋友可以留言介绍下,</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">相关文档:<a href="https://docs.docker.com/engine/reference/commandline/dockerd/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://docs.docker.com/engine/reference/commandline/dockerd/</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">至此Docker就安装完成了。</p><h2 id="-jenkins" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装Jenkins</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">(关于Docker镜像的制作,参见第二章)</p><h3 id="jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Jenkins简介</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Jenkins是一个用Java编写的开源的持续集成工具,可以于GitLab等代码管理工具联动,触发一定条件之后,实现自动进行测试、编译、部署等一系列动作。</p><h3 id="-docker-jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">使用Docker获得Jenkins镜像</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们接下来就要依靠Docker来继续在这台GitLab服务器上安装Jenkins服务了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">jenkins官网:<a href="https://jenkins.io/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://jenkins.io/</a></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们这里选择Docker平台的LTS版本,他会把我们引导到 hub.docker.com 的 jenkinsci/jenkins 页面,并告诉我们Docker Pull Command</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b708201175926" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b708201175926-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b708201175926-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;docker&nbsp;pull&nbsp;jenkinsci/jenkins</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意他的介绍写错了,hub.docker.com写着是weekly releases,但其实github和真实下下来的都是LTS版,但github上的weekly releases又会指回这个页面。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><strong>What were they thinking!</strong>&nbsp;Never mind.</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意我们可不能pull下来直接用!因为jenkins默认要使用两个端口:8080和50000,而8080这个端口已经被GitLab占上了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们也不必把Jenkins的Dockerfile下下来自己改。别忘了Docker的镜像是分层存储的,我们只要在Jenkins上继续搭建一个Dockerfile就可以了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">自己生成一个Dockerfile,内容:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b709689430558" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 174px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b709689430558-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b709689430558-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b709689430558-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b709689430558-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b709689430558-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b709689430558-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b709689430558-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b709689430558-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b709689430558-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b709689430558-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">FROM</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkinsci</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">jenkins</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b709689430558-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b709689430558-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">MAINTAINER</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">modified</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b709689430558-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b709689430558-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">COPY</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">etc</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">etc</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b709689430558-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b709689430558-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ENV</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">JENKINS</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>OPTS&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">httpPort</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b709689430558-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">EXPOSE</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span></div><div class="crayon-line" id="crayon-5a1e1e213b709689430558-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">EXPOSE</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">其中,本地目录etc/下方的是两个时区文件。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">默认的JENKINS_OPTS –httpPort是8080,我们修改成8081,之后将8081端口映射出来。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">之后执行</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b70a276894132" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b70a276894132-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b70a276894132-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">build</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">t</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'jenkins-catscarlet-modified'</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">the_dir_where_you_save_dockerfile</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">系统就会制作一个属于我们自己的,端口为8081的jenkins。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">使用docker images查看</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b70c440002114" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 94px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b70c440002114-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b70c440002114-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b70c440002114-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b70c440002114-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div></div></td><td class="crayon-code" style="border: 0px; width: 986px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b70c440002114-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#&nbsp;docker&nbsp;images</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b70c440002114-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">REPOSITORY</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">TAG</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGE</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ID</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">CREATED</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">SIZE</span></div><div class="crayon-line" id="crayon-5a1e1e213b70c440002114-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">catscarlet</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">modified</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">latest</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f093f22502fe</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">9</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">days</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ago</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">714.5</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">MB</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b70c440002114-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkinsci</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">jenkins</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">latest</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">17c5cc713911</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">13</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">days</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ago</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">714.5</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">MB</span></div></div></td></tr></tbody></table></div></div></div><h3 id="-jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">准备Jenkins的环境</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">新建目录<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">/var/jenkins</code>,你也可以自己选择存储路径,或者自己制作一个数据卷容器。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">给予这个目录权限。Jenkins在Dockerfile中描述的用户权限如下:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b70d159358950" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 94px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b70d159358950-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b70d159358950-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b70d159358950-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b70d159358950-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b70d159358950-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ARG</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">user</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">jenkins</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b70d159358950-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ARG</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">group</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">jenkins</span></div><div class="crayon-line" id="crayon-5a1e1e213b70d159358950-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ARG</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">uid</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1000</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b70d159358950-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ARG</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">gid</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1000</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">当然手懒可以直接来个777。安全问题自己解决。</p><h3 id="-jenkins" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">启动jenkins</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">启动容器</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b70e710917221" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b70e710917221-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 874px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b70e710917221-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">run</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">d</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">v</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins_home</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>home&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">catscarlet</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">modified</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">使用docker ps来查看容器运行情况。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">打开浏览器,访问你的8081端口来查看。能打开页面,配置个账号密码就行了。本章节只是为了熟练我们对Docker的一些基础操作。我们会在后面的文章中继续讲Jenkins</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">你需要保存的数据完全保存在&nbsp;<strong>/var/jenkins_home</strong>&nbsp;中。你可以随时删除这个容器(注意是容器,不是镜像或Dockerfile),并重建新的容器,你的数据不会丢失。</p><h2 id="-nsenter-docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">基于nsenter的Docker容器内管理工具</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">容器是一个绝对的黑盒环境,这意味着当我们遇到容器内配置有问题时,会遭遇一墙之隔:明知道是容器内的配置有问题,我们却不知道配置文件在哪、怎么写的、怎么写错了。不像传统虚拟机,有个界面入口能让我们登入。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">所以我们需要一个工具进入容器内,nsenter能满足我们的需求。</p><h3 id="-util-linux" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装util-linux</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">nsenter是包含在util-linux 2.23及之后版本中的工具,如果你的发行版默认自带版本低于2.23,你需要手动安装新版。已知Ubuntu 14.04 仍然使用 util-linux 2.20。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b710195499658" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 222px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e1e213b710195499658-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b710195499658-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b710195499658-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;apt-cache&nbsp;policy&nbsp;util-linux</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">util</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">linux</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span></div><div class="crayon-line" id="crayon-5a1e1e213b710195499658-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">Installed</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2.20.1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5.1ubuntu20.7</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">Candidate</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2.20.1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5.1ubuntu20.7</span></div><div class="crayon-line" id="crayon-5a1e1e213b710195499658-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Version</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">table</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2.20.1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5.1ubuntu20.7</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0</span></div><div class="crayon-line" id="crayon-5a1e1e213b710195499658-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">500</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyun</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">updates</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">amd64</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Packages</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">500</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">updates</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">amd64</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Packages</span></div><div class="crayon-line" id="crayon-5a1e1e213b710195499658-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">100</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">lib</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">dpkg</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">status</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2.20.1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5.1ubuntu20</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0</span></div><div class="crayon-line" id="crayon-5a1e1e213b710195499658-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">500</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyun</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">amd64</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Packages</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b710195499658-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">500</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">amd64</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">Packages</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在这里选择个版本<a href="https://www.kernel.org/pub/linux/utils/util-linux/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://www.kernel.org/pub/linux/utils/util-linux/</a>,之后下载util-linux-version.tar.xz,解压,configure、make nsenter &amp;&amp; cp nsenter /usr/local/bin。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">基本用法</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">nsenter 启动一个新的shell进程, 同时会把这个新进程切换到和目标进程相同的命名空间,这样就相当于进入了容器内部。为此我们需要获取容器的第一个进程的 PID</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b712115070616" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b712115070616-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b712115070616-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;PID=$(docker&nbsp;inspect&nbsp;--format&nbsp;"{{&nbsp;.State.Pid&nbsp;}}"&nbsp;&lt;container&gt;)</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">之后根据获取的PID进入容器</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b713638219042" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b713638219042-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b713638219042-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">nsenter</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">target</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$PID</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">mount</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">uts</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ipc</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">net</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">pid</span></div></div></td></tr></tbody></table></div></div></div><h3 id="-shell-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">使用shell简化步骤</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">新建一个文件getInDocker.sh并给予执行权限:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b714709139623" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 222px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e1e213b714709139623-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b714709139623-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b714709139623-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#!/bin/bash</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">ID</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e1e213b714709139623-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">PID</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">inspect</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">format</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"{{&nbsp;.State.Pid&nbsp;}}"</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$ID</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span></div><div class="crayon-line" id="crayon-5a1e1e213b714709139623-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$PID</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"PID&nbsp;is&nbsp;0,&nbsp;exit."</span></div><div class="crayon-line" id="crayon-5a1e1e213b714709139623-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">exit</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line" id="crayon-5a1e1e213b714709139623-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"Going&nbsp;into:"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">ps</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">id</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$ID</span></div><div class="crayon-line" id="crayon-5a1e1e213b714709139623-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"PID:$PID"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b714709139623-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">nsenter</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">target</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$PID</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">mount</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">uts</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ipc</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">net</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">pid</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">使用方式:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b716269714125" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 478px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-19" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-20" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">20</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-21" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-22" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">22</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-23" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-24" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">24</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-25" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-26" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">26</div><div class="crayon-num" data-line="crayon-5a1e1e213b716269714125-27" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">27</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b716269714125-28" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">28</div></div></td><td class="crayon-code" style="border: 0px; width: 1570px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b716269714125-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;./getInDocker.sh&nbsp;b7738b319cd8</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Going</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">into</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">CONTAINER</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">ID</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGE</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">COMMAND</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">CREATED</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">STATUS</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">PORTS</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">NAMES</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">b7738b319cd8</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">catscarlet</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">modified</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"/bin/tini&nbsp;--&nbsp;/usr/lo"</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">7</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">days</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ago</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Up</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">About</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">an</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">hour</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0.0.0.0</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-&gt;</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tcp</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8080</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tcp</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0.0.0.0</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-&gt;</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tcp</span>&nbsp;&nbsp;&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">distracted_euler</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">PID</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">14441</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">root</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">@</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">b7738b319cd8</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;ls&nbsp;-l&nbsp;--color</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">total</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">64</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">9</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">16</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">36</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">bin</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Sep</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">12</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">04</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">09</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">boot</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">360</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">23</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">08</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">15</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">dev</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">83</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">16</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">00</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">56</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">etc</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Sep</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">12</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">04</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">09</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">home</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">13</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">53</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">lib</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">29</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">lib64</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">media</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">mnt</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">opt</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-19" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">dr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">181</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">23</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">08</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">15</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">proc</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-20" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwx</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">--</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">root</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-21" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">3</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">run</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-22" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">30</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">sbin</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-23" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">18</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">28</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">srv</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-24" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">dr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">13</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">23</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">08</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">15</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">sys</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-25" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">drwxrwxrwt</span>&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">7</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">23</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">08</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">15</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">tmp</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-26" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">38</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">9</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">16</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">37</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">usr</span></div><div class="crayon-line" id="crayon-5a1e1e213b716269714125-27" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">drwxr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">xr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">26</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">4096</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Nov</span>&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">9</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">16</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">36</span>&nbsp;<span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b716269714125-28" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">root</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">@</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">b7738b319cd8</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">现在你已经进入容器了,这是一个几乎完全脱离宿主机的环境(除已挂在的数据卷),其中自带的命令非常有限,你可以在里面再安装一些调试工具。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">附赠一段可以在阿里云ECS上直接复制粘贴的代码(非阿里云用户可以把aliyuncs改成aliyun,或者把整段改为其他源。注意发行版版本号):</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e1e213b718531700708" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 318px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e1e213b718531700708-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e1e213b718531700708-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e1e213b718531700708-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">cat</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&lt;&lt;</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">EOF</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">etc</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">apt</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">sources</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.list</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">deb</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">trusty</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">deb</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">security</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">deb</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">updates</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">deb</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">proposed</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">deb</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">backports</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">deb</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">src</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">trusty</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">deb</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">src</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">security</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">deb</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">src</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">updates</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">deb</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">src</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">proposed</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">multiverse</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">deb</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">src</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mirrors</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.aliyuncs</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">ubuntu</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">trusty</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">backports</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">main</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">restricted</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">universe</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">multiverse</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">EOF</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">apt</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">get</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">update</span></div><div class="crayon-line" id="crayon-5a1e1e213b718531700708-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e1e213b718531700708-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">apt</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">get</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">install</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">net</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tools</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tcpdump</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">vim</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">lrzsz</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这段代码会在你的容器内配置阿里云ECS源,并安装一些工具。你现在可以在容器内执行ifconfig、netstat、tcpdump、vi、rz、sz了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">只要不删除这个容器,下次你进入这个容器还可以继续使用这些工具。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">你应该只在容器中安装不会影响原本服务的工具,这些工具应该只作为调试查看用,不能影响正常服务,并且可以被随时删除。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">不要在容器内保存重要数据(除已挂在的数据卷位置)。容器应该是状态不重要的,可以随时删除随时新建。你不应该容器内部保存配置文件,你应该将调试确认的配置文件移出容器并妥善保存。</p><h2 style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">小结</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">至此,我们的基本环境已经准备好了。</p></div><p></p>

dirtysea 发表于 2017-11-29 10:53:04

<h1 class="post-title entry-title" style="border: 0px none; margin-top: -3px; font-weight: normal; font-stretch: normal; font-size: 24px; line-height: normal; font-family: 'Pontano Sans', sans-serif; color: rgb(0, 0, 204);">使用GitLab、Jenkins、Docker建立快速持续化集成交付部署方案(二)</h1><div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">本文将要学习 Docker Image 的自定义,及 使用Docker Compose进行环境部署的方法。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><span id="more-2605"></span></p><h2 id="-gitlab-jenkins-docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">文章索引</h2><ol style="border: 0px none; margin-top: 5px; margin-bottom: 5px; margin-left: 30px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612022593.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">GitLab、Jenkins、Docker 初始环境安装</a></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612042605.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">制作 Docker镜像 及 Docker Compose 的使用</a>(本文)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612082623.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">使用 Webhook 自动触发 Jenkins 进行 Docker镜像制作并保存到私有镜像仓库,以及目的机部署</a></li></ol><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><h2 id="docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Docker一些概念</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">国内各个厂家对Docker概念都翻译不一样,我这里先写一下我自己的概念理解</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);"><strong>镜像(image)</strong>:<strong>镜像</strong></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);"><strong>容器(container)</strong>:由单一服务构成的针对最基本功能实现的&nbsp;<strong>服务(service)</strong>(比如Nginx)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);"><strong>项目(project)</strong>:多个服务构成的&nbsp;<strong>应用(application)</strong>(比如由 Nginx + PHP + Mysql + WordPress组成的博客)</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">单个容器只能提供非常基本的服务,比如单纯的Mysql数据库服务,单纯的Redis缓存服务。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">需要由多个容器协同工作,才能组成一个复杂且强大的项目,实现产品功能。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这里鄙视以下各个厂家为圈地,拉拢用户,使用了非常多的混淆概念,比如引入微服务(microservice)。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">什么是他妈的微服务,微博微信朋友圈玩多了吧。不论按照Windows还是按照Linux来讲,服务(service)指的都是由单一应用程序完成的最基本的功能实现。还他妈的微,是不是还要把HTTP服务拆成 HyperText Transfer Protocol 之后分三段去实现啊。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">维基百科上有针对<a href="https://zh.wikipedia.org/wiki/%E5%BE%AE%E6%9C%8D%E5%8B%99" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">微服务</a>的定义:微服务 (Microservices) 是一种软件架构风格 (Software Architecture Style),它是以专注于单一责任与功能的小型功能区块 (Small Building Blocks) 为基础,利用模组化的方式组合出复杂的大型应用程序,各功能区块使用与语言无关 (Language-Independent/Language agnostic) 的 API 集相互通讯。微服务是由以单一应用程序构成的小服务,自己拥有自己的行程与轻量化处理,服务依业务功能设计,以全自动的方式部署,与其他服务使用 HTTP API 通讯。同时服务会使用最小的规模的集中管理 (例如 Docker) 能力,服务可以用不同的编程语言与数据库等元件实作。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">很明显这里的微服务指的与我们所说的服务是相同的,只不过更强调其单一性,即甚至要把Apache+PHP这种组合也剥离开(传统模式下,PHP是以模块形式与Apache共同工作的,而Nginx与PHP是靠PHP-FPM共同工作,后者更颗粒化)</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">然而国内不少网站把微服务当做微信、微博一个级别的概念对待,以为微服务就是产品功能级的服务,订单微服务,通知微服务,狗屎微服务。</p><h2 style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;"></h2><h2 id="-docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">使用Docker实现一个项目</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们在这里,要基于nginx、php-fpm,实现一个PHP应用。这个项目将作为一个基础学习项目,对接下来的Jenkins和最终部署都有很大关系。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">将要做的事</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">首先先给大家看一下我的目录结构,如果你对我写的整个结构都很一目了然的话,证明你对这一部分都很熟悉,你可以跳过这一章节了。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec6335f475548877" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 462px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-19" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-20" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">20</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-21" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-22" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">22</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-23" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-24" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">24</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-25" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6335f475548877-26" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">26</div><div class="crayon-num" data-line="crayon-5a1e20ec6335f475548877-27" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">27</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">root</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">@</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">localhost</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#&nbsp;tree</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">compose</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">yml</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">getInDocker</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">sh</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>modified</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Dockerfile</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">etc</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">localtime</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">timezone</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>modified</div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">conf</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">d</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">default</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fastcgi</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">mime</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">types</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Dockerfile</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fpm</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>modified</div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-19" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-20" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">conf</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-21" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">│&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Dockerfile</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-22" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">project</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">build</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">sh</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-23" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">└──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">data</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-24" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">Dockerfile</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-25" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">web</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6335f475548877-26" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">a</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">txt</span></div><div class="crayon-line" id="crayon-5a1e20ec6335f475548877-27" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└──&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">index</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们需要准备nginx和php-fpm的Dockerfile,从Docker Hub上获取。编写一个静态文件和一个php文件,并为自己的代码制作一个Dockerfile用于生成数据卷容器。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">没人说过容器里不能放纯代码的。纯代码,满足最基本颗粒化要求(存储),无状态或状态不重要(随用随建,不用即删,临时文件不重要)。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">至于为什么要专门为php等代码建立数据卷容器,而不是直接使用git或其他代码管理工具同步到硬盘上的原因,将在后面介绍。</p><h3 id="nginx" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">nginx</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><strong>Let’s make a nginx_modified</strong></p><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">确认配置方法</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">首先我们要知道nginx的镜像内部到底是怎样的。有两种方法:</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">第一种,生成一个默认容器,并进入容器内部观察结构。这是一种不推荐的做法,因为除非你对整个服务有及其充分的了解,否则你永远摸不清它里面到底是怎样的。这就相当于你作为一个人类活了一辈子,除非你是专业的医生,否则你是没办法拿手术刀给别人做手术的。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">第二种,根据Docker Hub上的描述来修改相应的配置。这是推荐的办法,多数项目都会对自己的docker项目有比较详细的描述。而且多数项目可能会针对Docker做一些调整,他们的配置与传统的编译安装配置也是不同的。使用推荐的办法修改配置是最安全的办法。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">除非他们自身的描述写的相当渣,或者完全就没有描述,否则不要使用第一种方法。</p><h4 id="dockerfile" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Dockerfile</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Dockerfile是用于构建镜像的文件,其内包含了多指令,每一条指令构建一层。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这是为自定义nginx服务而编写的dockerfile</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63367930673826" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 206px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63367930673826-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63367930673826-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63367930673826-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63367930673826-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63367930673826-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e20ec63367930673826-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63367930673826-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">FROM</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1.10.2</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63367930673826-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63367930673826-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">MAINTAINER</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">catscarlet</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63367930673826-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63367930673826-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">ENV</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">NGINX</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>VERSION&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1.10.2</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">~</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">jessie</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63367930673826-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63367930673826-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">COPY</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">conf</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">etc</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">nginx</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63367930673826-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63367930673826-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">EXPOSE</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">80</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">443</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63367930673826-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63367930673826-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">CMD</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"nginx"</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"-g"</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"daemon&nbsp;off;"</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">逐条解释下:</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">FROM:基于哪个版本的镜像生成新的镜像,我们这里选择stable版的1.10.2。如果这里不指定版本号,docker会默认使用latest版本(2016年11月24日为1.11.5)</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">MAINTAINER:这个镜像的作者名</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">ENV:指定环境变量,这里声明了nginx的版本</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">COPY:将本地conf/中的文件复制到镜像的/etc/nginx目录下。使用这个办法我们替换了nginx的配置文件。包括默认网站、对php文件的处理等。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">EXPOSE:可映射的端口</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">CMD:容器启动时要执行的命令</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">VOLUME:定义匿名卷</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">nginx的default.conf</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec6336b552392812" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 222px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e20ec6336b552392812-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec6336b552392812-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">server</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">{</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">listen</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">80</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">root</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">html</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">index</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">index</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">php</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">index</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">html</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">charset</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">utf</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">location</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">~</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">{</span></div><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fastcgi</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>pass&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fpm</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">9000</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">include</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fastcgi</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">conf</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec6336b552392812-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec6336b552392812-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">}</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">生成镜像:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec6336c088567467" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec6336c088567467-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec6336c088567467-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">build</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">t</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'nginx_app'</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx_modified</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">测试启动:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec6336e498531561" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec6336e498531561-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec6336e498531561-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">#&nbsp;docker&nbsp;run&nbsp;-d&nbsp;-p&nbsp;10080:80&nbsp;nginx_app</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">因为我们的设备上还跑着GitLab和Jenkins呢,所以要避开许多端口,这里选择使用10080。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">使用浏览器打开本机的10080端口,这个时候/var/www/html并没有映射到任何数据卷,所以看到的应该是nginx的默认欢迎界面。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">底层执行<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker ps</code>查看这个容器,使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker down {container_id}</code>停止这个容器,使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker rm {container_id}</code>删除这个容器。你也可以在容器未停止时,直接使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker rm -f {container_id}</code>强制删除这个容器。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">提示:你可以使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker rm $(docker ps -a -q)</code>删除所有已停止的容器</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">底层执行<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker image</code>查看生成的镜像信息,使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker rmi {image_id}</code>删除这个镜像。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">提示:你可以使用<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker rmi $(docker images -q -f "dangling=true")</code>删除所有无tag的镜像。</p><h3 id="php-fpm" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">PHP-FPM</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">接下来我们制作PHP-FPM的镜像。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">其实完全没有必要,PHP-FPM不仅是真正的无状态的,而且几乎没有修改配置的必要。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Dockerfile,我们只指定以下版本就好了</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63370556107440" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 78px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63370556107440-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63370556107440-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec63370556107440-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63370556107440-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">FROM</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">7.0.13</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">fpm</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63370556107440-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63370556107440-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">MAINTAINER</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">catscarlet</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">默认情况下,会继承原镜像的端口映射9000。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">代码镜像</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这里再次强调一下,Docker的镜像是分层文件系统,我们的自定义nginx镜像并不会占用一个整个nginx镜像所需的硬盘空间,只占用我们添加的配置文件的空间大小,而所需的nginx则继续使用FROM中的镜像。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">那么对于没有基础依赖的代码镜像,应该FROM什么镜像呢?</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">网上有不少办法是基于一个最小化的Linux操作系统来做,比如Busybox。<strong>Bullshit!</strong></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意一下现在所有的Docker镜像,生成他们的Dockerfile都是有FROM的,而且一般都是 debian:jessie。这意味着多数镜像都是依赖debian:jessie的,debian:jessie已经存在于我们的本地镜像库中。我们也可以继续基于debian:jessie制作镜像。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Dockerfile</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63372340549128" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 142px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63372340549128-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63372340549128-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec63372340549128-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63372340549128-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec63372340549128-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63372340549128-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec63372340549128-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63372340549128-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">FROM</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">debian</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">jessie</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63372340549128-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63372340549128-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">MAINTAINER</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">catscarlet</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63372340549128-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63372340549128-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">COPY</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">web</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">html</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63372340549128-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63372340549128-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">VOLUME</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'/var/www/html/'</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">web/a.txt</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63374547790090" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63374547790090-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63374547790090-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">This</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">is</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">a</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">text</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">file</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">web/index.php</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63375284741760" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">PHP</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 190px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63375284741760-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63375284741760-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec63375284741760-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63375284741760-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec63375284741760-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63375284741760-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec63375284741760-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63375284741760-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e20ec63375284741760-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63375284741760-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63375284741760-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-ta" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(255, 0, 0) !important;">&lt;?php</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63375284741760-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63375284741760-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">ini_set</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'date.timezone'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'Asia/Shanghai'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63375284741760-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">header</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'Content-Type:text/plain;&nbsp;charset=utf-8'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec63375284741760-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63375284741760-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$hostname</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">file_get_contents</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'/etc/hostname'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec63375284741760-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$date</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">date</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'r'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">,</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">time</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63375284741760-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$rst</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'This&nbsp;is&nbsp;Server:&nbsp;'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$hostname</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"\n"</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'Now&nbsp;is&nbsp;'</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$date</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div><div class="crayon-line" id="crayon-5a1e20ec63375284741760-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63375284741760-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-k " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">echo</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$rst</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span></div></div></td></tr></tbody></table></div></div></div><h3 id="docker-compose" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Docker Compose</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker的每个容器只完成最基本的服务,而想要实现一个产品功能,往往需要多个基本服务共同完成。对于每个服务来讲他们是无依赖的,但对于项目来讲,他们就是需要紧密结合的。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker Compose就提供了这样一个功能,允许定义一组容器,组成一个项目。</p><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">执行命令如:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63376188745456" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 62px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63376188745456-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63376188745456-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div></div></td><td class="crayon-code" style="border: 0px; width: 1082px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63376188745456-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">curl</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">L</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">https</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">github</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.com</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">compose</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">releases</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">download</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1.9.0</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">compose</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">`</span><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">uname</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">s</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">`</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">`</span><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">uname</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">m</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">`</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">usr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">local</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">bin</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">compose</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63376188745456-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">chmod</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">+</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">x</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">usr</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">local</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">bin</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">compose</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">官方也提供pip安装方式,但依赖和局限性比较多,在不同的系统上有不同的问题,不建议用这种方式安装</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">相关文档:<a href="https://docs.docker.com/compose/" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://docs.docker.com/compose/</a></p><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker Compose使用YAML格式的配置文件:<strong>docker-compose.yml</strong></p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e20ec63378348363303" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">YAML</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 350px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div><div class="crayon-num" data-line="crayon-5a1e20ec63378348363303-19" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e20ec63378348363303-20" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">20</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e20ec63378348363303-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">www-data</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">build</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;./www-data</span></div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">php-fpm</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">build</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;./php-fpm_modified</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">expose</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;9000</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">volumes_from</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;www-data</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">nginx_app</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">build</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;./nginx_modified</span></div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">expose</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;80</div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">links</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;php-fpm</div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">volumes_from</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;www-data</div><div class="crayon-line" id="crayon-5a1e20ec63378348363303-19" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">ports</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e20ec63378348363303-20" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="crayon-i " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">"9080:80"</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">主要使用方法:直接在docker-compose.yml的路径下,执行以下命令:</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">docker-compose build 新建(或重建)项目中所有需要build的镜像。此步非必须。</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">docker-compose up 新建(或重建)项目中所有需要build的镜像,并启动对应项目。这是一个前台操作,在所有容器内所有进程退出之前不会退出,使用Ctrl-C会停止容器,但不会删除容器。使用 -d 参数使项目在后台启动。</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">docker-compose start 启动一个已经存在的项目。</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">docker-compose stop 停止一个已经运行的项目。</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">docker-compose down 停止一个已经运行的项目,并删除所有相关联容器。</li></ul><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">启动项目</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在docker-compose.yml的路径下执行docker-compose up -d。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">现在访问你的服务器<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">http://your-server:9080/a.txt</code>应该可以打开这个静态文件 a.txt,<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">http://your-server:9080/index.php</code>可以打开执行后的php结果了。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">一些问题</h3><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">代码位置问题</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">有很多开发者会把要运行的代码与服务打包到同一个镜像中。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这些开发者一般多为JAVA开发者。对于JAVA开发者来讲,他们的项目结构可能是这样的:TOMCAT + JAVA包 + 数据存储。对于&nbsp;<strong>TOMCAT + JAVA包</strong>&nbsp;这种情况便是强依赖环境,同样符合无状态和最小颗粒的特性,或许并没有问题。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">然而对于其他语言的开发者,项目结构一般为 HTTP服务 + 语言解析器 + 代码 + 数据存储。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">以PHP开发者举例,可以理解为 NGINX + PHP-FPM + 代码 + Mysql。而代码中不仅包含php代码,也会包含html、js、css等代码。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">将代码单独的放入 NGINX 镜像或者 PHP-FPM 镜像,都会导致运行过程中,容器之间无法获取代码,解析时出现404错误。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">另外在日常开发时,经常变动的也只有代码部分,其他镜像一般多为万年不变的。将代码独立到单独容器中也会减小部署压力。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">(目前还没见到过PHP开发者使用Docker和做持续化部署的)</p><h4 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置文件问题</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们对标准的nginx镜像进行了修改,添加和修改了配置文件。对于应可以随时替换的标准服务来讲这并不完美。于是有一种思路,就是把配置文件像代码一样也做成数据卷容器。这样做未尝不可,但难度会很大。因为挂在数据卷的话,会导致配置文件下整个目录覆盖,可能会影响到我们并不想更改的默认参数。</p></div><p></p>

dirtysea 发表于 2017-11-29 10:53:57

<b>使用GitLab、Jenkins、Docker建立快速持续化集成交付部署方案(三)</b><br><br><div align="left"><br></div><br><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">文中我们将完成 GitLab → Jenkins → Docker 的环境,并完成基于GitLab、Jenkins、Docker的面向Web开发的快速部署方案。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们最终得到的结果,将是部署人员只在部署环境下只敲一句命令,就完成整个部署工作。<span id="more-2623"></span></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><del>最终的目的就是接近一键部署,烧锅炉的大叔都会给服务器部署服务了,开除工程师。</del></p><h2 style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">文章索引</h2><ol style="border: 0px none; margin-top: 5px; margin-bottom: 5px; margin-left: 30px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612022593.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">GitLab、Jenkins、Docker 初始环境安装</a></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612042605.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">制作 Docker镜像 及 Docker Compose 的使用</a></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px;"><a href="https://blog.catscarlet.com/201612082623.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">使用 Webhook 自动触发 Jenkins 进行 Docker镜像制作并保存到私有镜像仓库,以及目的机部署</a>(本文)</li></ol><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><h2 id="-docker-" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">私有Docker仓库</h2><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">为什么要使用私有仓库</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们最终要得到的交付成果,应是一个 Docker Image。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在某种程度上,不少公司在开发测试阶段可能会考虑直接在开发服务器上生成本地镜像,或是使用&nbsp;<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">docker save</code>&nbsp;方式导出tar镜像包文件,在不同机器上进行部署。这种方式对于公司网络环境比较好的情况下确实可以实行,而且对于线上生产环境,<strong>某种意义</strong>&nbsp;上人工验收后部署要比全自动部署更放心。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">然而更多的企业,外部网络带宽有限,内部网络优化更是<a href="https://blog.catscarlet.com/201512222206.html" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">渣的可怜</a>。一个镜像包一般都在百M左右,用网络复制可能需要几十分钟甚至半个小时,部署一次环境,等待网络复制的时间,要比 拿一个优盘抱着笔记本乘上几十层电梯钻进机房忍着低温和轰鸣 蛋疼的多。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><img class="alignnone ls_lazyimg" src="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap477.png" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap477.png" alt="" width="676" height="436" lazyloadindexed="1" lazyloadpass="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 1; max-width: 98%; height: 436px; background: none 50% 50% no-repeat;"></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">(已见过不止 3 家公司内部网络是这种情况。而且一般公司的IT部也都是所谓的网管,出问题后 重启、重装、换机 三步走的风格与一般小农村网吧网管也没什么区别。这种职位多数都是公司内部解决职工亲属就业问题内推产生的。神州泰岳全公司都在用12.12.0.0/16这种公网地址当私网地址用,为服务器申请一个静态DHCP地址都会搞得吵架。神州数码这种大公司的网管也在给新员工配置新电脑的时候,装个盗版操作系统都要看手册,还总出错)</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">所以我们要在这里,充分利用Docker镜像的分层文件系统:没有更新的部分不会生成新的镜像,不会浪费硬盘空间,拉取新镜像时旧镜像也不会消耗流量和带宽。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">建立私有仓库</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">你可以直接执行:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ecd317982777" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ecd317982777-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ecd317982777-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">run</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">d</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5000</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">v</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker_registry</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">lib</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">registry</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">registry</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">来启动一个仓库容器,默认端口5000,数据将会保存于/var/docker_registry。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意这是Version 2,对于其他版本请参考其它文档。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意这是一个HTTP服务,没有加密传输,对于安全性需求,建议自行解决。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">相关文档:<a href="https://github.com/docker-library/docs/tree/master/registry" target="_blank" style="color: rgb(102, 17, 204); text-decoration: none;">https://github.com/docker-library/docs/tree/master/registry</a></p><h3 id="-tag" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">本地镜像打tag</h3><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ed4164630568" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ed4164630568-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ed4164630568-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tag</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">eea53635d0c6</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">your_registry_domain</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">private</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">registry</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">data</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0.0.1</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这不是一个移动操作,而是一个复制软链接诶操作,在docker images中会新增一个ID相同但tag不同的镜像,不占用硬盘空间。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">推送本地镜像到仓库</h3><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ed6306687464" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ed6306687464-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ed6306687464-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">push</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">your_registry_domain</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">private</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">registry</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">data</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">0.0.1</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">会将这个镜像推送到your_registry_domain/private-docker-registry/</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">拉取仓库镜像到本地,或直接执行</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">pull 和 run,不解释</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><h2 id="-gitlab" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置GitLab</h2><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">访问权限</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意,因为GitLab是我们自建的仓库,拥有完全的使用权,所以对于仓库的可视权限将要比GitHub多出两种选项。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><img class="alignnone ls_lazyimg" src="https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/blank_1x1.gif" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap484.png" alt="" width="405" height="244" lazyloadindexed="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 0.1; max-width: 98%; height: 244px; background: url(&quot;https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/loading.gif&quot;) 50% 50% no-repeat;"></p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Private 私有,只有所有者、组内成员或已分配的用户有查看权限(同GitHub收费版的私有仓库)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Internal 内部,拥有GitLab账号的成员可以查看,无账号用户无法访问(适合于服务器放在公网但不想公开代码的情景,GitHub没有这个功能)</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Public 公共,任何人都可以访问(同GitHub免费版的公共仓库)</li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">建议公司内部的代码仓库都设置为 Internal。</p><h3 id="-gitlat-webhook-jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">使用GitLat Webhook与Jenkins实现持续交付</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">GitLab等代码仓库其实也支持CI/CD操作,然而我们将要执行的操作对于GitLab来讲过于复杂了,所以这些操作要交给Jenkins这种专门的持续集成工具。为了能在需要时自动触发Jenkins自动操作,我们要使用GitLab的Webhook进行操作。</p><h4 id="deploy-keys" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Deploy Keys</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">你可以为Jenkins专门制作Deploy Keys,或者干脆在GitLab上增加一个Jenkins账户,用户Jenkins拉取代码。两种方法都可以。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><img class="alignnone ls_lazyimg" src="https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/blank_1x1.gif" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap485.png" alt="" width="370" height="406" lazyloadindexed="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 0.1; max-width: 98%; height: 406px; background: url(&quot;https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/loading.gif&quot;) 50% 50% no-repeat;"></p><h4 id="-webhook" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置Webhook</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">根据我们之前的安装部署,Jenkins的端口是8081。假设我们的主机域名(地址)为your-what-server,项目为catscarlet/test1.git,则url为</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ed9623198772" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ed9623198772-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ed9623198772-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">http</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-c" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(153, 153, 153) !important; font-style: italic !important;">//your-jenkins-server:8081/git/notifyCommit?url=git@your-gitlab-server:catscarlet/test1.git</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">触发条件建议选择 Merge Request event,或干脆手动触发。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这里就有GitLab安装在宿主机的好处了,端口很标准,不然改个ssh端口还要使用git的话,会变得很麻烦。至于https,相信搞得定Let’s encrypt的人很多,但搞不到公司域名的人更多。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><h2 id="-jenkins" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">配置Jenkins</h2><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">安装必要插件</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">安装这些插件:</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Credentials Plugin</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Git plugin</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Gitlab Hook Plugin</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">SSH plugin</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">Locale plugin</li></ul><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">修改默认语言</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Jenkins默认根据用户系统来显示语言,然而其自身的中文翻译挺糟糕的,所以换成纯英文更好一些。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在安装 Locale plugin 插件之后,点击 Manage Jenkins – Configure System,在Default Language处填写<code style="font-stretch: normal; font-size: 12px; line-height: normal; font-family: 'Courier New', monospace; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; margin-right: 2px; margin-left: 2px; border: 1px solid rgb(213, 213, 213); border-radius: 3px; overflow: auto; white-space: pre-wrap; background: rgb(248, 248, 248);">en</code>,保存。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">修改并发数</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">因为接下来我们会把项目代码复制到一个统一的临时目录下进行处理,如果这时候有其他项目也在处理,则这个临时文件夹内可能就会有文件混乱的问题。所以我们要把Jenkins的并发数改为1,参数为&nbsp;# of executors 。对于需要并发处理的正式环境,您需要手动修改临时目录的位置。</p><h3 id="-jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">新建Jenkins 项目</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">登录到Jenkins主页,New Item 新建一个 Freestyle project ,命名为test1。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在 Source Code Management 这里,选择Git,并在Repositories填写你的Git项目地址catscarlet/test1.git,Credentials选择你的证书,Branch Specifier选择对应Branch。在 Additional Behaviours 中增加 Clean before checkout。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Build Triggers选择Poll SCM,激活Webhook功能。内容留空,不定时Build,完全由Webhook触发。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在 Build 这里,Add build stemp 增加两个项目:Execute shell 和 Execute shell script on remote host using ssh。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">不能选择直接在本地 Execute shell ,因为Jenkins目前是运行在Docker容器内的,与宿主机完全隔离,除了基本的Linux Shell和JAVA的SDK环境之外,容器内没有任何其他东西了,不能使用Docker命令,没有node和npm,不能编译,几乎什么都做不了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">所以我们在这里要分开做两件事:</p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">准备代码,并复制到宿主机环境</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">登录到宿主机,在宿主机上进行打包。你也可以选择登录到其他主机上,比如一台专用打包服务器。</li></ul><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">代码</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">更改Jenkins的启动方式,额外绑定一个数据卷目录。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54edc170028930" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 46px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54edc170028930-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div></div></td><td class="crayon-code" style="border: 0px; width: 890px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54edc170028930-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">run</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">d</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">v</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins_home</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-t" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important; color: rgb(128, 0, 128) !important;">var</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">_</span>home&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">v</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tmp</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">8081</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">50000</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">jenkins_modified</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们已经在Source Code Management选择了Git,所以在执行Execute shell之前,Jenkins会先用Git把代码拉取到本地,不需要自己手动执行git pull。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Execute shell:</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54edf820822026" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 206px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54edf820822026-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54edf820822026-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54edf820822026-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54edf820822026-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54edf820822026-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e211a54edf820822026-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54edf820822026-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#!/bin/bash</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54edf820822026-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'------------------------------'</span></div><div class="crayon-line" id="crayon-5a1e211a54edf820822026-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;Execute&nbsp;shell&nbsp;---'</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54edf820822026-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">touch</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">BUILD_</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">{</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">BUILD_NUMBER</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">}</span></div><div class="crayon-line" id="crayon-5a1e211a54edf820822026-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">{</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">BUILD_NUMBER</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">}</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">BUILD_VERSION</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54edf820822026-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tar</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">zcvf</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_archive</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.tgz</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span></div><div class="crayon-line" id="crayon-5a1e211a54edf820822026-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">rm</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">rf</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54edf820822026-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">mkdir</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">p</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div><div class="crayon-line" id="crayon-5a1e211a54edf820822026-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">cp</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_archive</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.tgz</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54edf820822026-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;Execute&nbsp;shell&nbsp;finished&nbsp;---'</span></div><div class="crayon-line" id="crayon-5a1e211a54edf820822026-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'------------------------------'</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Execute shell script on remote host using ssh:</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">需要先在 Jenkins – configuration – SSH remote hosts 中添加对应的服务器登录方式。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ee0568553216" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 238px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee0568553216-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e211a54ee0568553216-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#!/bin/bash</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'-----------------------------------------------------'</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;Execute&nbsp;shell&nbsp;script&nbsp;on&nbsp;remote&nbsp;host&nbsp;using&nbsp;ssh&nbsp;---'</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">cd</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">tar</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">zxf</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_archive</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.tgz</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;Finished&nbsp;tar&nbsp;zxf&nbsp;tmp_archive.tgz&nbsp;---'</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">!</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">project</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">build</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"---&nbsp;Error!&nbsp;project-build.sh&nbsp;not&nbsp;avaliable!&nbsp;---"</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">exit</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;Prepare&nbsp;to&nbsp;build&nbsp;---'</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee0568553216-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">bash</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">project</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">build</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">test1</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">your_registry_domain</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">5000</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">private</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">registry</span></div><div class="crayon-line" id="crayon-5a1e211a54ee0568553216-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'-----------------------------------------------------'</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这里建议调用从git仓库上拉下来的脚本,而不是把要执行的命令写在Jenkins这里。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">project-build.sh</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ee2669275182" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-mixed-highlight" title="含多种语言" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important;"></span><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-expand-button" title="点击展开代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -96px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">Shell</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 814px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-19" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-20" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">20</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-21" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-22" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">22</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-23" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-24" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">24</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-25" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-26" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">26</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-27" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">27</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-28" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">28</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-29" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">29</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-30" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">30</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-31" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">31</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-32" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">32</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-33" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">33</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-34" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">34</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-35" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">35</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-36" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">36</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-37" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">37</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-38" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">38</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-39" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">39</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-40" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">40</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-41" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">41</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-42" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">42</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-43" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">43</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-44" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">44</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-45" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">45</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-46" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">46</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-47" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">47</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee2669275182-48" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">48</div><div class="crayon-num" data-line="crayon-5a1e211a54ee2669275182-49" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">49</div></div></td><td class="crayon-code" style="border: 0px; width: 922px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-p" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(184, 92, 0) !important;">#!/bin/bash</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">BUILD_NUMBER</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">REGISTRY_URL</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">REGISTRY_NAME</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">3</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">LOGFILE</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">=</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">build</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.log</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">touch</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$LOGFILE</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"-&nbsp;BUILD_NUMBER:$1"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$LOGFILE</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"-&nbsp;REGISTRY_URL:$2"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$LOGFILE</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"-&nbsp;REGISTRY_NAME:$3"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$LOGFILE</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">!</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">a</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">2</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">a</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">$</span><span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">3</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;PRAMA&nbsp;ERROR&nbsp;---'</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$LOGFILE</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">exit</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGEIDS</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">rm</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-19" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-20" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-21" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">touch</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGEIDS</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-22" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-23" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">n</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"$REGISTRY_URL/$REGISTRY_NAME/test1-nginx_modified:"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-24" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">build</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">q</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">t</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_URL</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_NAME</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">test1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx_modified</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$BUILD_NUMBER</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">nginx_modified</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-25" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">n</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"$REGISTRY_URL/$REGISTRY_NAME/test1-php-fpm_modified:"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-26" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">build</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">q</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">t</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_URL</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_NAME</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">test1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fpm_modified</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$BUILD_NUMBER</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">php</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">fpm_modified</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-27" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">n</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"$REGISTRY_URL/$REGISTRY_NAME/test1-www-data:"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">IMAGEIDS</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-28" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">docker</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">build</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">q</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">t</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_URL</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$REGISTRY_NAME</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">test1</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">data</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">:</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$BUILD_NUMBER</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">www</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">data</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">/</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGEIDS</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-29" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-30" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-31" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">rm</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-32" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-33" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-34" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">while</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">read</span>&nbsp;<span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">line</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-35" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">do</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-36" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$line</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">|</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">sed</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"s/<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span>:sha256:<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span>/docker&nbsp;tag&nbsp;\2&nbsp;\1:latest/g"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-37" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">$line</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">|</span>&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">sed</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">"s/<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span>:sha256:<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">(</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">*</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">\</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">)</span>/docker&nbsp;push&nbsp;\1/g"</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-38" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">done</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&lt;</span>&nbsp;<span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">IMAGEIDS</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-39" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-40" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">PUSH</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.log</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-41" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">rm</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">PUSH</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.log</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-42" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-43" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-44" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">if</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">[</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">!</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">-</span><span class="crayon-i" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">f</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span>&nbsp;<span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">]</span><span class="crayon-sy" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(51, 51, 51) !important;">;</span>&nbsp;<span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">then</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-45" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">echo</span>&nbsp;<span class="crayon-s" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">'---&nbsp;ERROR!&nbsp;tmp_shell.sh&nbsp;is&nbsp;missing!&nbsp;---'</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-46" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">exit</span>&nbsp;<span class="crayon-cn" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 153, 153) !important;">1</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-47" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-st" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">fi</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee2669275182-48" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">bash</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">tmp_shell</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.sh</span>&nbsp;<span class="crayon-o" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 111, 224) !important;">&gt;&gt;</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker_push</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.log</span></div><div class="crayon-line" id="crayon-5a1e211a54ee2669275182-49" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-r" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: bold !important;">cat</span>&nbsp;<span class="crayon-v" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(0, 45, 122) !important;">docker_push</span><span class="crayon-e" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: teal !important;">.log</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这里建议对每个镜像都手动打包,而不是使用compose打包。一方面compose无法针对镜像打tag(compose更关注于容器而非镜像,容器是NAME而镜像是TAG),另一方面最终部署所需的 docker-compose.yml 中需要编写的是&nbsp;<strong>带仓库路径的 image</strong>&nbsp;而非 build。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">我们的理想情况是,部署人员从GitLab获取 docker-compose.yml 之后,执行 docker-compose up,便完成容器部署操作。(面向傻瓜的程序设计,一键部署吔)</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">测试</h3><h4 id="gitlab-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">GitLab端</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">在GitLab的Webhooks页面有一个Test按钮,点一下就会触发Webhooks,如果提示&nbsp;<strong>Hook executed successfully: HTTP 200</strong>&nbsp;那么GitLab这端就工作正常。</p><h4 id="jenkins-" style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 16px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">Jenkins端</h4><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Jenkins接到Webhooks后就会开始打包。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><img class="alignnone ls_lazyimg" src="https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/blank_1x1.gif" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap490.png" alt="" width="335" height="442" lazyloadindexed="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 0.1; max-width: 98%; height: 442px; background: url(&quot;https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/loading.gif&quot;) 50% 50% no-repeat;"></p><ul style="border: 0px none; margin-top: 10px; margin-bottom: 10px; margin-left: 30px; list-style-position: outside; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);">灰色表示正在准备</li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);"><span style="color: rgb(0, 0, 255);">蓝色表示打包中或打包完成</span></li><li style="border: 0px none; margin-bottom: 7px; margin-left: 0px; list-style-image: url(&quot;images/list-style-image.png&quot;);"><span style="color: rgb(255, 0, 0);">红色表示打包出错</span></li></ul><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">点击进入后可通过左侧的 Console Output 查看控制台的情况,比如 Shell 执行出错在哪里。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">注意Jenkins会在Git检查代码变更情况,如果GitLab那段没有新提交的话,Jenkins会认为代码相同,没有必要,会忽略这次打包。所以如果要进行测试的话,可能需要删除上一次的打包结果。你可以在 Polling Log 中查看相关信息。</p><h3 style="border: 0px none; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 18px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">部署</h3><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">部署人员从GitLab获取 docker-compose.yml 并复制到目的机,执行<strong>&nbsp;docker-compose up</strong>。</p><div class="line" style="color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><div id="crayon-5a1e211a54ee5387448587" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; box-sizing: border-box; width: 860px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; height: auto; border: 1px solid rgb(222, 222, 222) !important; font-size: 14px !important; line-height: 16px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; background-color: rgb(248, 248, 255) !important;"><div class="crayon-toolbar" data-settings=" show" style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; width: 858px; position: relative; overflow: hidden; z-index: 4; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(222, 222, 222) !important; height: 21px !important; line-height: 21px !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><span class="crayon-title" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 4px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;"></span><div class="crayon-tools" style="font-family: inherit; border: 0px; position: absolute; right: 0px; height: 21px !important; font-weight: inherit !important; background: 0px 50%;"><div class="crayon-button crayon-nums-button crayon-pressed" title="切换是否显示行编号" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: -24px 0px no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;"></div></div><div class="crayon-button crayon-plain-button" title="纯文本显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;"></div></div><div class="crayon-button crayon-wrap-button" title="切换自动换行" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;"></div></div><div class="crayon-button crayon-copy-button" title="复制代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;"></div></div><div class="crayon-button crayon-popup-button" title="在新窗口中显示代码" style="font-family: inherit; border: 0px; height: inherit; line-height: 15px; display: inline; position: relative; width: 24px; font-size: inherit !important; font-weight: inherit !important; float: left !important; background: 0px 50% no-repeat;"><div class="crayon-button-icon" style="font-family: inherit; border: 0px; margin-top: -8px; width: 24px; position: absolute; left: 0px; top: 10.5px; height: 16px !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;"></div></div><span class="crayon-language" style="font-family: inherit; float: left; height: inherit; font-size: 12px; line-height: inherit !important; font-weight: inherit !important; padding-right: 8px !important; padding-left: 4px !important; color: rgb(102, 102, 102) !important;">YAML</span></div></div><div class="crayon-plain-wrap" style="border: 0px; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; height: auto !important; background: 0px 50%;"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly="" style="border: 0px; color: rgb(0, 0, 0); padding-right: 5px; padding-left: 5px; height: 350px; width: 858px; overflow: hidden; position: absolute; opacity: 0; box-sizing: border-box; border-radius: 0px; box-shadow: none; white-space: pre; word-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 14px !important; line-height: 16px !important; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"></textarea></div><div class="crayon-main" style="border: 0px; width: 858px; overflow: hidden; position: relative; z-index: 1; font-family: Consolas, ConsolasRegular, 'Courier New', monospace !important; background: 0px 50%;"><table class="crayon-table" style="font-size: 12px; border: none !important; width: auto !important; border-spacing: 0px !important; table-layout: auto !important; background: none !important;"><tbody><tr class="crayon-row" style="border: none !important; vertical-align: top !important; background: 0px 50%;"><td class="crayon-nums " data-settings="show" style="border: 0px; padding: 0px !important; vertical-align: top !important; background-image: initial; background-attachment: initial; background-color: rgb(238, 238, 238) !important; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 50%; background-repeat: initial;"><div class="crayon-nums-content" style="border: 0px; white-space: nowrap; padding-top: 5px !important; padding-bottom: 3px !important; font-size: 14px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-1" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-2" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">2</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-3" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-4" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">4</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-5" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-6" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">6</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-7" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-8" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">8</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-9" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-10" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">10</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-11" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-12" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">12</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-13" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-14" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">14</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-15" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-16" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">16</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-17" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-18" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">18</div><div class="crayon-num" data-line="crayon-5a1e211a54ee5387448587-19" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a1e211a54ee5387448587-20" style="font-family: inherit; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-right: 5px; padding-left: 5px; height: inherit; border-right-width: 1px !important; border-right-style: solid !important; border-right-color: rgb(222, 222, 222) !important; text-align: right !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; min-width: 1.2em !important; color: rgb(170, 170, 170) !important; background: 0px 50%;">20</div></div></td><td class="crayon-code" style="border: 0px; width: 830px; padding: 0px !important; vertical-align: top !important; background: 0px 50%;"><div class="crayon-pre" style="color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; font-size: 14px !important; background: none !important;"><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-1" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">test1-www-data</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-2" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">image</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;your_registry_domain</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:5000/private-docker-registry/test1-www-data</span></div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-3" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-4" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">test1-php-fpm</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-5" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">image</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;your_registry_domain</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:5000/private-docker-registry/test1-php-fpm_modified</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-6" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">expose</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-7" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;9000</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-8" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">volumes_from</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-9" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;test1-www-data</div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-10" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;</div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-11" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;"><span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">test1-nginx_app</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-12" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">image</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:&nbsp;your_registry_domain</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:5000/private-docker-registry/test1-nginx_modified</span></div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-13" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">expose</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-14" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;80</div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-15" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">links</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-16" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;test1-php-fpm</div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-17" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">volumes_from</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-18" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;test1-www-data</div><div class="crayon-line" id="crayon-5a1e211a54ee5387448587-19" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;<span class="crayon-s " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: rgb(221, 17, 68) !important;">ports</span><span class="" style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a1e211a54ee5387448587-20" style="font-family: inherit; border: 0px; padding-right: 5px; padding-left: 5px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; background: 0px 50%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="crayon-i " style="font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;">"9080:80"</span></div></div></td></tr></tbody></table></div></div></div><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><img class="alignnone ls_lazyimg" src="https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/blank_1x1.gif" file="https://zenphoto1.catscarlet.com/albums/wordpress/201612082623_gitlab_jenkins_docker_ci_cd_3/snap493.png" alt="" width="630" height="92" lazyloadindexed="1" style="border: 4px solid rgb(227, 227, 227); margin-top: 5px; margin-bottom: 5px; opacity: 0.1; max-width: 98%; height: 92px; background: url(&quot;https://blog.catscarlet.com/wp-content/plugins/images-lazyload-and-slideshow/loading.gif&quot;) 50% 50% no-repeat;"></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">这回烧锅炉的大叔都会给服务器部署服务了,终于可以把工程师都开除了。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">&nbsp;</p><h2 style="border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-style: none; border-color: initial; margin-top: 20px; margin-bottom: 5px; color: rgb(51, 51, 51); font-stretch: normal; font-size: 20px; line-height: normal; font-family: 'Helvetica Neue', Helvetica, Geneva, Arial, sans-serif;">总结</h2><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">本系列文章简单讲述了基于GitLab、Jenkins、Docker的面向Web开发的快速部署方案。文章中没有涉及Docker 1.12以及swarn等相关概念。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker 1.11中,基于compose的DAB方案,是以在同一服务器上部署所有服务镜像的方式实现的,这是一种容易简单理解的实现方式。在集群中,每个节点都运行相同的容器组合。多个节点运行相同的容器群,容器群之间隔离没有交互,而容器间紧密结合。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">但这是一种可能浪费资源的模式。负责某些服务的容器可能负载非常大,但上下游容器则比较空闲。这种情况下,更希望多个节点都能分担压力大的服务,而对比较闲的服务则减少数量。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">另外同一节点上可能会有多个项目,而项目间可能会有相同的无擦别服务,比如php-fpm。更希望复用这一个容器,而不是启用多个相同容器只占内存不干活。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">Docker 1.12中实现了这种需求,将分布式的概念从项目分解到容器应用。但目前仍是试验中,所以没有仔细研究,也不建议使用。阿里云在Docker还在1.11版本期间,自己也开发了一个阿里版Docker,实现了1.12中的这个功能,但是限制太多,脚本不兼容,不建议使用。</p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><br></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><br></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;"><br></p><p style="border: 0px none; margin-top: 10px; color: rgb(44, 43, 43); font-family: arial; font-size: 16px; line-height: 26.4px;">来源&nbsp;https://blog.catscarlet.com/201612082623.html</p>
页: [1]
查看完整版本: 使用GitLab、Jenkins、Docker建立快速持续化集成交付部署方案