一、搜索Docker官方镜像
语法:docker search [option] keyword
选项:
-f, --filter filter:过滤输出内容;
--format string:格式化输出内容;
--limit int:限制输出结果个数,默认为25个;
--no-trunc:不截断输出结果。
例如,搜索官方提供的带nginx关键字的镜像
[root@iZ2zea4u8pasyhtllbo54oZ ~]# docker search --filter=is-official=true nginx NAME DESCRIPTION STARS OFFICIAL AUTOMATED nginx Official build of Nginx. 13059 [OK]