Docker search 命令

更新时间 2022-09-09 16:41:56

Docker 常用命令大全 Docker 常用命令大全

作用

search 命令用于搜索镜像仓库中的镜像。

用法

Usage: docker search [OPTIONS] TERM

Search the Docker Hub for images

  --automated=false    Only show automated builds
  --help=false         Print usage
  --no-index=false     Don't prepend index to output
  --no-trunc=false     Don't truncate output
  -s, --stars=0        Only displays with at least x stars

示例

$ sudo docker search ubuntu

从官方仓库中搜索出含有关键字 ubuntu 的镜像:

INDEX       NAM                                       DESCRIPTION                                       STARS         OFFICIAL            AUTOMATED
docker.io   docker.io/ubuntu                          Ubuntu is a Debian-based Linux operating s...     2046           [OK]
docker.io   docker.io/ubuntu-upstart                  Upstart is an event-based replacement for ...     30             [OK]
docker.io   docker.io/torusware/speedus-ubuntu        Always updated official Ubuntu docker imag...     25                                       [OK]
docker.io   docker.io/dorowu/ubuntu-desktop-lxde-vnc  Ubuntu with openssh-server and NoVNC on po...     20                                       [OK]
docker.io   docker.io/sequenceiq/hadoop-ubuntu        An easy way to try Hadoop on Ubuntu               19                                       [OK]
docker.io   docker.io/tleyden5iwx/ubuntu-cuda         Ubuntu 14.04 with CUDA drivers pre-installed      16                                       [OK]
docker.io   docker.io/ubuntu-debootstrap              debootstrap --variant=minbase --components...     12             [OK]
…

Docker 常用命令大全 Docker 常用命令大全