92 字
1 分钟
通过dockerhub的官方API查找官方镜像的历史版本
命令
curl -L -s "https://registry.hub.docker.com/v2/repositories/library/$1/tags?page_size=1024" | jq '.results[]["name"]' | sed 's/\"//g' | sort -u用法
可以将上面的命令写成一个shell脚本,运行脚本来查找。 如:
[root@wordpress-187 /opt/ShellScripts]#./search-tag.sh centos55.1166.106.66.76.86.977.0.14067.1.15037.2.15117.3.16117.4.17087.5.18047.6.18107.7.19087.8.20037.9.200988.1.19118.2.20048.3.20118.4.2105centos5centos5.11centos6centos6.10centos6.6centos6.7centos6.8centos6.9centos7centos7.0.1406centos7.1.1503centos7.2.1511centos7.3.1611centos7.4.1708centos7.5.1804centos7.6.1810centos7.7.1908centos7.8.2003centos7.9.2009centos8centos8.1.1911centos8.2.2004centos8.3.2011centos8.4.2105latest支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
通过dockerhub的官方API查找官方镜像的历史版本
https://white-festa.net/posts/docker-search/ 最后更新于 2023-07-01,距今已过 906 天
部分内容可能已过时