2022-12-05

Powershell: docker - print tags for image

$imageName='camunda/camunda-bpm-platform'
$nextLink="https://registry.hub.docker.com/v2/repositories/$imageName/tags"
echo "Receiving: $nextLink"

$res=$null
Do {
    $content = curl $nextLink | ConvertFrom-Json
    $nextLink = $content.next
    #echo $nextLink
    $res+= $content.results.name
     
} While ($nextLink)

echo $res | sort