I would like to get the current version number of latest version of some docker library images.


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.

  • What is the output you are getting for curl -s 'https://registry.hub.docker.com/v2/repositories/library/mongo/tags/' and what is the output you need from it? – Inian Oct 5 '17 at 5:10
  • 1
    Probably because those tags are in page 2 for mongo. – muru Oct 5 '17 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.