通过dockerhub的官方API查找官方镜像的历史版本
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/相关文章智能推荐
1
使用MetalLB VIP为原生kubernetes配置负载均衡服务
容器在单节点 K3s 中使用 MetalLB L2 模式和 Envoy Gateway,为应用分配并宣告固定 LoadBalancer VIP
2
为 Linux 主机配置动态密码
Linux软件部署及使用通过 Google Authenticator 和 PAM 为 Linux 主机的 SSH 登录配置动态验证码,支持密码或密钥搭配动态码认证,并介绍登录验证、时间同步与用户豁免的配置方法。
3
In corde meo multa suspiria
随笔In corde meo multa suspiria. Pulchritudinem tuam deplorant, et frigus cordis tui.
4
深入 etcd:Raft 共识协议中的选举机制: 角色、Quorum 与 Pre-Vote
容器从节点角色、Quorum 公式、选举流程、split vote 处理,到 Pre-Vote 预投票机制,系统梳理 etcd 在主节点宕机场景下的完整共识过程
5
将单点Control Plane的Kubernetes扩充为多个Control Plane实现集群高可用性
容器结合Nginx负载均衡,keepalived + VIP机制实现的三控制平面的kubernetes集群
随机文章随机推荐

