- 描述:
搜索镜像
1、配置镜像源
docker默认连接的镜像仓库是国外的,速度不是很快,所以我们可以配置国内的docker镜像仓库。
vim /etc/docker/daemon.json
输入以下配置即可:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
#{
#"registry-mirrors": ["https://reg-mirror.qiniu.com"]
#}
2、国内镜像仓库搜索镜像源
网易云镜像中心:https://c.163yun.com/hub#/m/home/

搜索nginx镜像,获取拉取镜像源

3、在官方镜像源获取镜像
docker 官方镜像源:https://hub.docker.com/
搜索镜像

获取镜像

默认下载最新latest版本,可在后加版本,也可获取dockerfile获取镜像。
4、用法:
docker search [OPTIONS] TERM
- 示例:带有OFFICIAL是官方镜像,建议使用。
[root@bogon ~]# docker search nginx
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker.io docker.io/nginx Official build of Nginx. 11305 [OK]
docker.io docker.io/jwilder/nginx-proxy Automated Nginx reverse proxy for docker c... 1588 [OK]
docker.io docker.io/richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable ... 709 [OK]
docker.io docker.io/jrcs/letsencrypt-nginx-proxy-companion LetsEncrypt container to use with nginx as... 506 [OK]
docker.io docker.io/webdevops/php-nginx Nginx with PHP-FPM 125 [OK]
docker.io docker.io/zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server ... 98 [OK]
docker.io docker.io/bitnami/nginx Bitnami nginx Docker Image 65 [OK]
docker.io docker.io/linuxserver/nginx An Nginx container, brought to you by Linu... 59
docker.io docker.io/1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK]
docker.io docker.io/tobi312/rpi-nginx NGINX on Raspberry Pi / ARM 26 [OK]
docker.io docker.io/nginx/nginx-ingress NGINX Ingress Controller for Kubernetes 18
docker.io docker.io/schmunk42/nginx-redirect A very simple container to redirect HTTP t... 15 [OK]
docker.io docker.io/nginxdemos/hello NGINX webserver that serves a simple page ... 14 [OK]
docker.io docker.io/blacklabelops/nginx Dockerized Nginx Reverse Proxy Server. 12 [OK]
docker.io docker.io/wodby/drupal-nginx Nginx for Drupal container image 12 [OK]
docker.io docker.io/centos/nginx-18-centos7 Platform for running nginx 1.8 or building... 10
docker.io docker.io/centos/nginx-112-centos7 Platform for running nginx 1.12 or buildin... 7
docker.io docker.io/1science/nginx Nginx Docker images that include Consul Te... 4 [OK]
docker.io docker.io/nginx/nginx-prometheus-exporter NGINX Prometheus Exporter 4
docker.io docker.io/nginxinc/nginx-unprivileged Unprivileged NGINX Dockerfiles 4
docker.io docker.io/mailu/nginx Mailu nginx frontend 3 [OK]
docker.io docker.io/travix/nginx NGinx reverse proxy 2 [OK]
docker.io docker.io/toccoag/openshift-nginx Nginx reverse proxy for Nice running on sa... 1 [OK]
docker.io docker.io/ansibleplaybookbundle/nginx-apb An APB to deploy NGINX 0 [OK]
docker.io docker.io/wodby/nginx Generic nginx 0 [OK]
- 参数:
Name, shorthand | Default | Description | 中文 |
---|---|---|---|
--automated |
deprecated Only show automated builds | 仅显示自动构建 | |
--filter , -f |
Filter output based on conditions provided | 根据提供的条件过滤输出,限制结果输出 | |
--format |
Pretty-print search using a Go template | 使用Go模板进行漂亮的打印搜索 | |
--limit |
25 |
Max number of search results | 最大搜索结果数 |
--no-trunc |
Don’t truncate output | 不要截断输出 | |
--stars , -s |
deprecated Only displays with at least x stars | 仅显示至少有x个stars的镜像 |
- eg:
此示例显示名称中包含“nginx”的图像,至少3颗星,并且输出中的描述不会被截断
[root@bogon ~]# docker search --stars=3 --no-trunc nginx
Flag --stars has been deprecated, use --filter=stars=3 instead
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker.io docker.io/nginx Official build of Nginx. 11305 [OK]
docker.io docker.io/jwilder/nginx-proxy Automated Nginx reverse proxy for docker containers 1588 [OK]
docker.io docker.io/richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable of pulling application code from git 709 [OK]
docker.io docker.io/jrcs/letsencrypt-nginx-proxy-companion LetsEncrypt container to use with nginx as proxy 506 [OK]
docker.io docker.io/webdevops/php-nginx Nginx with PHP-FPM 125 [OK]
docker.io docker.io/zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server with MySQL support 98 [OK]
docker.io docker.io/bitnami/nginx Bitnami nginx Docker Image 65 [OK]
docker.io docker.io/linuxserver/nginx An Nginx container, brought to you by LinuxServer.io. 59
docker.io docker.io/1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK]
docker.io docker.io/zabbix/zabbix-web-nginx-pgsql Zabbix frontend based on Nginx with PostgreSQL database support 33 [OK]
docker.io docker.io/tobi312/rpi-nginx NGINX on Raspberry Pi / ARM 26 [OK]
docker.io docker.io/nginx/nginx-ingress NGINX Ingress Controller for Kubernetes 18
docker.io docker.io/schmunk42/nginx-redirect A very simple container to redirect HTTP traffic to another server, based on nginx 15 [OK]
docker.io docker.io/nginxdemos/hello NGINX webserver that serves a simple page containing its hostname, IP address and port ... 14 [OK]
docker.io docker.io/blacklabelops/nginx Dockerized Nginx Reverse Proxy Server. 12 [OK]
docker.io docker.io/wodby/drupal-nginx Nginx for Drupal container image 12 [OK]
docker.io docker.io/centos/nginx-18-centos7 Platform for running nginx 1.8 or building nginx-based application 10
docker.io docker.io/centos/nginx-112-centos7 Platform for running nginx 1.12 or building nginx-based application 7
docker.io docker.io/1science/nginx Nginx Docker images that include Consul Template and S6 Overlay to manage multiple processes. 4 [OK]
docker.io docker.io/nginxinc/nginx-unprivileged Unprivileged NGINX Dockerfiles 4
docker.io docker.io/mailu/nginx Mailu nginx frontend 3 [OK]
网友评论