4-Docker命令之docker search

2023-12-13 06:31:24

1.docker search介绍

docker search命令是用来从docker仓库查找镜像

2.docker search用法

docker search [参数] TERM

[root@centos79 ~]# docker search --help

Usage:  docker search [OPTIONS] TERM

Search Docker Hub for images

Options:
  -f, --filter filter   Filter output based on conditions provided
      --format string   Pretty-print search using a Go template
      --limit int       Max number of search results
      --no-trunc        Don't truncate output
[root@centos79 ~]# 

3.实例

3.1.搜索指定镜像

命令:

docker search nginx

[root@centos79 ~]# docker search nginx
NAME                                              DESCRIPTION                                      STARS     OFFICIAL   AUTOMATED
nginx                                             Official build of Nginx.                         19298     [OK]       
unit                                              Official build of NGINX Unit

文章来源:https://blog.csdn.net/z19861216/article/details/134734084
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。