Docker search 命令

docker search : 从Docker Hub查找镜像

语法

  1. docker search [OPTIONS] TERM

OPTIONS说明:

  • —automated :只列出 automated build类型的镜像;

  • —no-trunc :显示完整的镜像描述;

  • -s :列出收藏数不小于指定值的镜像。

实例

从Docker Hub查找所有镜像名包含java,并且收藏数大于10的镜像

  1. test@docker:~$ docker search -s 10 java
  2. NAME DESCRIPTION STARS OFFICIAL AUTOMATED
  3. java Java is a concurrent, class-based... 1037 [OK]
  4. anapsix/alpine-java Oracle Java 8 (and 7) with GLIBC ... 115 [OK]
  5. develar/java 46 [OK]
  6. isuper/java-oracle This repository contains all java... 38 [OK]
  7. lwieske/java-8 Oracle Java 8 Container - Full + ... 27 [OK]
  8. nimmis/java-centos This is docker images of CentOS 7... 13 [OK]