I would like to get the current version number of latest version of some docker library images.
- 'docker' should give me:
- 'mongo' should give me:
I tried to do it this way:
curl -s 'https://registry.hub.docker.com/v2/repositories/library/mongo/tags/' | jq '."results"["name"]' | tr -d '"'
But that doesn't give me the needed result.