uTools-Manuals/docs/docker/docker rmi.html
2019-04-21 11:50:48 +08:00

20 lines
621 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 rmi 命令</h1>
<p><strong>docker rmi : </strong>删除本地一个或多少镜像。</p>
<h3>语法</h3>
<pre>docker rmi [OPTIONS] IMAGE [IMAGE...]</pre>
<p>OPTIONS说明</p>
<ul>
<li><p><strong>-f :</strong>强制删除;</p><p></p></li>
<li><p><strong>--no-prune :</strong>不移除该镜像的过程镜像,默认移除;</p><p></p></li>
</ul>
<h3>实例</h3>
<p>强制删除本地镜像runoob/ubuntu:v4。</p>
<pre>root@runoob:~# docker rmi -f runoob/ubuntu:v4
Untagged: runoob/ubuntu:v4
Deleted: sha256:1c06aa18edee44230f93a90a7d88139235de12cd4c089d41eed8419b503072be
</pre>