uTools-Manuals/docs/docker/docker save.html
2019-05-07 10:37:34 +08:00

17 lines
629 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>Docker save 命令</h1>
<p><strong>docker save : </strong>将指定镜像保存成 tar 归档文件。</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker save [OPTIONS] IMAGE [IMAGE...]</code></pre>
<p>OPTIONS说明</p>
<ul>
<li><p><strong>-o :</strong>输出到的文件。</p><p></p></li>
</ul>
<h3>实例</h3>
<p>将镜像runoob/ubuntu:v3 生成my_ubuntu_v3.tar文档</p>
<pre><code class="language-Docker">runoob@runoob:~$ docker save -o my_ubuntu_v3.tar runoob/ubuntu:v3
runoob@runoob:~$ ll my_ubuntu_v3.tar
-rw------- 1 runoob runoob 142102016 Jul 11 01:37 my_ubuntu_v3.ta
</code></pre>