Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 10 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nuno.guerreiro.rosa_9280
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation