<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';"></span></h2><pre class="bash" name="code" style="word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(102, 102, 102); line-height: 26px; white-space: pre-wrap; font-size: 14px; background-color: rgb(255, 255, 255);"><h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">1. docker (version、info)</span></h2>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 458px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># docker </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker version </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># docker </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker info </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t1" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">2. image (search、pull、images、rmi、history)</span></h2>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 683px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># image </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker search image_name </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># image </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker pull image_name </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -a, --all=false Show all images; --no-trunc=false Don't truncate output; -q, --quiet=false Only show numeric IDs </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker images </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -f, --force=false Force; --no-prune=false Do not delete untagged parents </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker rmi image_name </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; --no-trunc=false Don't truncate output; -q, --quiet=false Only show numeric IDs </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker history image_name </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t2" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">3. (run)</span></h2>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">docker 。 , 、 、shell 。 。 。 , , 。</span></p>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 1216px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># "echo" , "hello word" </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker run image_name echo "hello word" </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker run -i -t image_name /bin/bash </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker run image_name apt-get install -y app_name </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">Note: apt-get , -y 。 -y ,apt-get , , docker 。apt-get , , 。</span></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t3" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">4. (ps)</span></h2>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 1605px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># container </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker ps </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># container </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker ps -a </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># container </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker ps -l </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t4" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">5. (commit)</span></h2>
<span style="word-wrap: break-word; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';"> ( ), , 。</span></span><span style="word-wrap: break-word; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"></span>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 1900px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -a, --author="" Author; -m, --message="" Commit message </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker commit ID new_image_name </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">Note: image ,container , , container commit image。</span></p>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t5" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">6. (rm、stop、start、kill、logs、diff、top、cp、restart、attach)</span></h2>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 2163px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker rm `docker ps -a -q` </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -f, --force=false; -l, --link=false Remove the specified link and not the underlying container; -v, --volumes=false Remove the volumes associated to the container </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker rm Name/ID </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># 、 、 </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker stop Name/ID </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker start Name/ID </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker kill Name/ID </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -f, --follow=false Follow log output; -t, --timestamps=false Show timestamps </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker logs Name/ID </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ,list ,A ,D ,C </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker diff Name/ID </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker top Name/ID </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># / </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker cp Name:/container_path to_path </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker cp ID:/container_path to_path </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; -t, --time=10 Number of seconds to try to stop for before killing the container, Default=10 </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker restart Name/ID </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># ; --no-stdin=false Do not attach stdin; --sig-proxy=true Proxify all received signal to the process </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker attach ID </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;">Note: attach 。 attach 。 , CTRL-C。</p>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t6" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">7. (save、load)</span></h2>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';"> , 。</span></p>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 3016px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># tar ; -o, --output="" Write to an file </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker save image_name -o file_path </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># tar ; -i, --input="" Read from a tar archive file </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker load -i file_path </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># a </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker save image_name > /home/save.tar </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># scp save.tar b , : </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker load < /home/save.tar </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t7" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">8、 registry server(login)</span></h2>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 3313px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># registry server; -e, --email="" Email; -p, --password="" Password; -u, --username="" Username </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker login </span></li></ol></div>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t8" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">9. image(push)</span></h2>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 3502px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"># docker </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker push new_image_name </span></li></ol></div>
<h2 style="word-wrap: break-word; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><a target=_blank name="t9" style="word-wrap: break-word; color: rgb(86, 86, 86);"></a><span style="word-wrap: break-word; font-family: 'Microsoft YaHei';">10. Dockerfile </span></h2>
<p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial; white-space: normal;"><br style="word-wrap: break-word;" /></p>
<div class="dp-highlighter bg_plain" style="word-wrap: break-word; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; width: 700.906px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); white-space: normal; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="word-wrap: break-word; padding-left: 45px;"><div class="tools" style="word-wrap: break-word; padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word;">[plain]</span> <a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="ViewSource" title="view plain" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/we_shell/article/details/38368137#" class="CopyToClipboard" title="copy" style="word-wrap: break-word; text-decoration: none; color: rgb(160, 160, 160); border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/.s/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-color: inherit; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="word-wrap: break-word; position: absolute; left: 493px; top: 3659px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" style="word-wrap: break-word; margin: 0px 0px 1px 45px !important; padding: 0px; list-style: none; border: none; color: rgb(92, 92, 92); background-color: rgb(255, 255, 255);"><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">#build </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> --no-cache=false Do not use cache when building the image </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> -q, --quiet=false Suppress the verbose output generated by the containers </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> --rm=true Remove intermediate containers after a successful build </span></li><li class="alt" style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); color: inherit; line-height: 18px;"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"> -t, --tag="" Repository name (and optionally a tag) to be applied to the resulting image in case of success </span></li><li style="word-wrap: break-word; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style: decimal-leading-zero outside; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="word-wrap: break-word; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">$docker build -t image_name Dockerfile_path </span></li><li></li></ol></div>