查看 docker 镜像 tags

curl  https://registry.hub.docker.com/v1/repositories/mysql/tags | python3 -m json.tool | more

可以保存为 shell 脚本, 方便使用

#!/bin/bash 

echo '正在搜索镜像 '$1' 的tags ...' 

curl  https://registry.hub.docker.com/v1/repositories/$1/tags | python3 -m json.tool | more

参考 博问: https://q.cnblogs.com/q/130431/

原文地址:https://www.cnblogs.com/52liming/p/14058179.html