文档章节

Search Docker Images with docker search Command

Ciet
 Ciet
发布于 01/18 12:41
字数 400
阅读 24
收藏 0

To run docker containers we need images, To find images we can use the docker search command. The docker search command help us search images from the docker public repository. In this docker tutorial we are going to learn how to search docker images using the docker search command.

The docker search command, search images that match the specified TERM.

docker search TERM

For example, Following command will search for the WordPress images.

docker search wordpress

Search Docker Images with docker search Command

As above screenshot shows, search results include image name, Description and number of stars awarded for the image. Is is also tells us whether the image is official, and whether it is automated.

Official images are the images that officially created by the project that bears its name. In this case WordPress official image is provided by the WordPress development team.

Following Query will only return official docker images.

docker search --filter=is-official=true wordpress

By default, search queries will only return up to 25 results, But we can control the limit using the '--limit' option.

docker search --limit=50 wordpress

The above search query will return up to 50 results.

Also the image description is truncated by default. To get a full image description '---no-trunc' option need to use.

docker search --no-trunc wordpress

After searching the image, we can pull it to the local system by running the docker pull command:

docker pull wordpress

Docker Search Examples

For the Docker search help, Type:

docker search --help

Search for the Term 'ubuntu':

docker search ubuntu

Search for the Ubuntu Image, But only display official images:

docker search --filter=is-official=true ubuntu
Filter Search result to display official ubuntu images

Filter Search result to display official ubuntu images

Search the Term 'Nginx' and only display the images ranked 5 or higher:

docker search --filter=stars=5 nginx

Search the Term 'Nginx' and only display the images ranked 5 or higher

Search Docker Hub for the term 'mysql' and only display automated images ranked 5 or higher:

docker search --filter=stars=5 --filter=is-automated=true mysql

Search command is very simple and easy to use, But not necessarily the best way to find docker images. Instead, you should search on the docker hub webpage to get more detail information about the image you want to download.

本文转载自:https://www.configserverfirewall.com/docker/search-images/

Ciet
粉丝 0
博文 68
码字总数 70
作品 0
南京
其他
私信 提问
加载中

评论(0)

Docker学习笔记--基础篇

Docker概览 Docker架构 Docker采用client-server架构,client和daemon间使用REST API进行通讯。client和daemon可以运行在相同或不同的机器。daemon间也可以通过Docker API通讯。 Docker Reg...

billben
2018/08/19
0
0
CentOS6.6安装和使用Docker

Docker简介 docker 是一个linux 上的LXC 容器项目,是很轻量级的虚拟化技术。 docker虽然基于lxc技术(cgroup、namespace等),但是思路完全和lxc不一样。 lxc看起来更像是一个虚拟机,多用于...

yuanhuan_2005
2018/06/26
0
0
Docker 基础用法和命令帮助

一、Docker的基础用法 Docker镜像首页,包括官方镜像和其它公开镜像 因为国情的原因,国内下载 Docker HUB 官方的相关镜像比较慢,可以使用 docker.cn 镜像,镜像保持和官方一致,关键是速度...

我爱吃葱花
2016/10/25
45
0
Docker安装

4 docker安装与启动 安装docker [root@localhost /]# vi /etc/sysconfig/docker [root@localhost /]# service docker start Starting cgconfig service: [ OK ] Starting docker: [ OK ] [r......

烟璃悠
2017/03/14
3
0
【Application】Docker 常用命令(三)

Docker常用命令 info|version   1、info     docker info : 显示 Docker 系统信息,包括镜像和容器数     语法:docker info [OPTIONS]     例:docker info   2、version  ...

H__D
03/25
0
0

没有更多内容

加载失败,请刷新页面

加载更多

入门级科普:五分钟让你的应用拥有高精度定位功能

本文作者:用户_123456789 什么是智能定位服务 定位能力即帮助用户解决“我在哪”的问题,依托百度位置大数据及多种混合定位方式,百度地图开放平台为智能穿戴、用车出行、快递物流、生活服务...

百度开发者中心
2019/08/14
9
0
在Ruby on Rails中对nil v。空v。空白的简要解释 - A concise explanation of nil v. empty v. blank in Ruby on Rails

问题: I find myself repeatedly looking for a clear definition of the differences of nil? 我发现自己一再寻找nil?差异的明确定义nil? , blank? , blank? , and empty? , empty? in ......

javail
今天
15
0
DevOps与NoOps现状分析

时下的IT趋势中,DevOps 正是一个热语。它起源于几年前SPA (单页面应用) 的前端应用.我认为常态的IT技术适应就是,在新技术爆发的那一时刻开始,立马就会被敏锐的人们所采用,然后被快速传播...

tidings_
今天
21
0
OSChina 周六乱弹 —— 代码创造人工生命

Osc乱弹歌单(2020)请戳(这里) 【今日歌曲】 @小小编辑推荐:《inner universe》 - ORIGA 《inner universe》 - ORIGA 手机党少年们想听歌,请使劲儿戳(这里) 当机器人具有意识的时候,...

小小编辑
今天
20
1
怎么创建远程桌面连接

1、IIS7远程桌面 管理中文最新版是一款专业的远程桌面管理工具,更新了原09网络远程桌面管理,较之以前的版本,操作更加便捷,能够同时远程多台服务器,多台服务器间自由切换,完全无压力。I...

吹的心痒痒
今天
22
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部