240 字
1 分钟
docker之如何用命令搜索docker镜像
参考链接
Search Docker Images with docker search Command——Config Server Firewall
指定关键字搜索
docker search <the keyword you search>#例如搜索oracledocker search oracle就可以返回相关的所有镜像了

过滤非docker官方镜像
docker search --filter=is-official=true oracle查询时不省略过长的镜像描述
在上一个命令,可以看到Description有很多被省略了,下面这个命令可以让查看全部的docker镜像描述
docker search --no-trunc oracle
设置返回结果数
By default, search queries will only return up to 25 results, But we can control the limit using the ‘—limit’ option.
默认情况下,搜索查询将只返回前面25结果,但是我们可以使用
--limit选项控制限制。
docker search --limit=50 oracle显示start最多的几条
显示oracle查询结果中,start最多的前5条
docker search --filter=stars=5 oracle显示自动化镜像
docker search --filter=is-automated=true oracle—help查看更多帮助
docker search --help命令是可以组合的
docker search --filter=stars=5 --filter=is-automated=true --no-trunc oracle docker之如何用命令搜索docker镜像
https://iszengmh.pages.dev/posts/docker之如何用命令搜索docker镜像/