镜像加速代理

https://dockerproxy.com/

https://dockerproxy.com/

搜索镜像命令

docker search python 
docker search --filter stars=3 python  #3星以上镜像
docker search --filter "is-official=true" --filter "stars=3" python   #3星以上,官方版本镜像

查看版本命令行

https://registry.hub.docker.com/v1/repositories/python/tags

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

#php-fpm
docker search php-fpm 
curl https://registry.hub.docker.com/v1/repositories/php/tags | python3 -m json.tool | more

sh脚本

docker-tags.sh

#!/bin/sh
#
# Simple script that will display docker repository tags.
#
# Usage:
#   $ docker-search.sh centos
for Repo in $* ; do
  curl -s -S "https://registry.hub.docker.com/v2/repositories/library/$Repo/tags/" | \
    sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | \
    grep '"name"' | \
    awk -F\" '{print $4;}' | \
    sort -fu | \
    sed -e "s/^/$:/"
done

执行方法

chmod 744 ./docker-tags.sh
./docker-tags.sh python