Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 529 Bytes

registry.md

File metadata and controls

18 lines (13 loc) · 529 Bytes

Working with private registry

List all images with tags. JQ package is required
registry_url="https://user:[email protected]"

repos=$(curl --silent ${registry_url}/v2/_catalog | jq --raw-output ".repositories")

for repo in $(echo "${repos}" | jq -r '.[]'); do
    # echo ${repo}
    tags=$(curl --silent ${registry_url}/v2/${repo}/tags/list | jq  --raw-output ".tags")
    for tag in $(echo "${tags}" | jq -r '.[]'); do
        echo "${repo}:${tag}"
    done
done