search

用法:docker search [OPTIONS] TERM

功能:在镜像库中查找特定的镜像

选项:

—automated=false 显示自动构建的image

—no-trunc=false 不对输出进行删减

-s, —stars=0 只显示特定星级以上的image

示例:

  1. 在官方镜像库中搜寻nginx

    1. $ sudo docker search nginx
    2. NAME DESCRIPTION STARS OFFICIAL AUTOMATED
    3. nginx Official build of Nginx. 11873 [OK]
    4. jwilder/nginx-proxy Automated Nginx reverse proxy for docker con 1645 [OK]
    5. richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable of 739 [OK]
    6. linuxserver/nginx An Nginx container, brought to you by LinuxS 74
    7. bitnami/nginx Bitnami nginx Docker Image 70 [OK]
    8. tiangolo/nginx-rtmp Docker image with Nginx using the nginx-rtmp 51 [OK]
  2. 在私有镜像库中搜寻busybox,在私有镜像库中搜寻时要加上私有镜像库的地址

    1. $ sudo docker search 192.168.1.110:5000/busybox