Docker search 命令
docker search 命令从 Docker Hub 查找镜像
docker search [OPTIONS] TERM
OPTIONS | 说明 |
---|---|
-f, --filter filter | 过滤返回的镜像 |
--format string | 使用模版美化返回结果 |
--limit int | 限制返回结果数量 |
--no-trunc | 不要分段输出 |
范例
从 Docker Hu b查找所有镜像名包含 python,并且收藏数大于 10 的镜像
[root@localhost ~]# docker search -f star NAME DESCRIPTION STARS OFFICIAL AUTOMATED python Python is an interpreted, interactive, objec… 2879 [OK] django Django is a free web application framework, … 673 [OK] pypy PyPy is a fast, compliant alternative implem… 136 [OK] kaggle/python Docker image for Python scripts run on Kaggle 96 [OK] centos/python-35-centos7 Platform for building and running Python 3.5… 22 amazon/aws-eb-python AWS Elastic Beanstalk Python Image 20 resin/raspberrypi3-python The Python buildpack image for Python apps f… 17 arm32v7/python Python is an interpreted, interactive, objec… 17