Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

ProGet Query Latest Docker Image Tag



  • Is there any way querying proget native API or any other available API where I can get the latest tag pushed for a particular docker image ?

    The closest I got was using the endpoint below but ideally there would be an endpoint that returns literally the latest version (tag) of a docker image.

    https://proget-repository.mydomain.com/v2/feed-docker/docker-image-name/tags/list

    I have also tried to get the last item from the tags list array and that would be the default "latest" tag. Querying -1 from the last index would return the correct last version until your version goes "1.0.100", then -1 from last won't be returning latest version anymore.

    Is there an alternative ?

    Thanks


  • inedo-engineer

    Hello;

    Tags in Docker registries are really just a human-readable pointer to a digest (hash) of an container image. It's really just a name+digest, and there's no additional metadata provided by the Docker API.

    This is why we encourage Semantic Versioning for Containers, and have a feature built-in that helps with this. You can then reliably parse those tags like semnatic version numbers, and use them as needed.

    The Packages vs Containers documentation also talks about some of the quirks, if you're not familiar with them already.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation