Docker search 命令

 Docker 命令大全Docker 命令大全


docker search : 從Docker Hub查找鏡像

語法

docker search [OPTIONS] TERM

OPTIONS說明:

  • --automated :只列出 automated build類型的鏡像;

  • --no-trunc :顯示完整的鏡像描述;

  • -s :列出收藏?cái)?shù)不小于指定值的鏡像。

實(shí)例

從Docker Hub查找所有鏡像名包含java,并且收藏?cái)?shù)大于10的鏡像

w3cschool@w3cschool:~$ 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]
isuper/java-oracle    This repository contains all java...   38                 [OK]
lwieske/java-8        Oracle Java 8 Container - Full + ...   27                 [OK]
nimmis/java-centos    This is docker images of CentOS 7...   13                 [OK]

 Docker 命令大全Docker 命令大全