#!/bin/env bash Registry=http://hs01.cvtt.vpn:5500 Catalog=${Registry}/v2/_catalog jstr=$(curl -s -X GET ${Catalog}) # echo ${jstr} echo "${jstr}" | jq -r '.repositories[]' | while read repo; do TagListURL="${Registry}/v2/${repo}/tags/list" # echo $repo Cmd="curl -s -X GET ${TagListURL}" echo ${Cmd} eval ${Cmd} # TagList=$(eval ${Cmd}) # # echo ${TagList} # echo "${TagList}" | jq -r '.tags[]' | while read tag; do # echo "${Registry}/${repo}:${tag}" # done done