需要安装jq,在epel源中

#!/bin/bash
file=$(mktemp)
curl -s $1:5000/v2/_catalog | jq | egrep -v '\{|\}|\[|]' | awk -F\" '{print $2}' > $file
while read aa ; do
tag=($(curl -s $1:5000/v2/$aa/tags/list | jq | egrep -v '\{|\}|\[|]|name' | awk -F\" '{print $2}'))
       for i in ${tag[*]};do
           echo $1:5000/${aa}:$i 
       done
done < $file
rm -rf $file

Q.E.D.