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

29 lines
1.1 KiB
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 search 命令</h1>
<p><strong>docker search :</strong> 从Docker Hub查找镜像</p>
<h3>语法</h3>
<pre>docker search [OPTIONS] TERM</pre>
<p>OPTIONS说明</p>
<ul>
<li><p><strong>--automated :</strong>只列出 automated build类型的镜像</p></li>
<li><p><strong>--no-trunc :</strong>显示完整的镜像描述;</p></li>
<li><p><strong>-s :</strong>列出收藏数不小于指定值的镜像。</p></li>
</ul>
<h3>实例</h3>
<p>从Docker Hub查找所有镜像名包含java并且收藏数大于10的镜像</p>
<pre>runoob@runoob:~$ docker search -s 10 java
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
java Java is a concurrent, class-based... 1037 [OK]
anapsix/alpine-java Oracle Java 8 (and 7) with GLIBC ... 115 [OK]
develar/java 46 [OK]
lwieske/java-8 Oracle Java 8 Container - Full + ... 27 [OK]
nimmis/java-centos This is docker images of CentOS 7... 13 [OK]
</pre>