https://registry.hub.docker.com/v1/repositories/<イメージ名>/tagsから、JSON 形式の tag 一覧が拾えるんだとか。
wget -qO- https://registry.hub.docker.com/v1/repositories/ubuntu/tags \ | ruby -r json -e 'JSON::Parser.new(STDIN.read).parse.each{|x|puts x["name"]}'みたいな感じで一覧が得られる。