«

»

Print this Post

List all NAV Docker Image Tags on Docker Hub

Some time ago, I created this script because I wanted to know all the available tags on dockerhub for the “microsoft/dynamics-nav” repository on Docker.

Why? I don’t know anymore :-). But it was clear that the “tags” section on DockerHub only showed us a very small part of the available tags.

Yesterday, we were wondering why a specific version (one that we used quite some time ago from an insider version) wouldn’t download – and we wanted to have a version ‘as close as possible’ to the one we were using. Well – we need a list for that ;-).

PowerShell

You might not be surprised I used PowerShell for that – however I might as well used AL for it. It’s a simple web service-call with a JSON-response. So, it’s quite easy.

Here is the script:

The result is in the “ResultingObject” variable. So you can just query that JSON Array. Here are a few examples:

Display the number of tags:

$ResultingObject.Count

Display all tags:

$ResultingObject.name

All Belgian tags:

$ResultingObject | where name -like ‘*be’ | select name

Search for a certain version:

$ResultingObject | where name -like ‘*11.0.21063*’ | select name

Enjoy!

0.00 avg. rating (0% score) - 0 votes

Permanent link to this article: http://www.waldo.be/2018/08/06/list-all-nav-docker-image-tags-on-docker-hub/

3 comments

2 pings

  1. Jonas

    Hey Waldo. Could you modify the script to use a page_size? That way, docker will get less queries 🙂 https://registry.hub.docker.com/v2/repositories/microsoft/dynamics-nav/tags/?page_size=250

    1. waldo

      So much faster :-);

      Thanks so much!

  2. Kriki

    and use
    $result = Invoke-WebRequest -Uri “https://registry.hub.docker.com/v2/repositories/microsoft/bcsandbox/tags/?page_size=250”

    for BC!

  1. List all NAV Docker Image Tags on Docker Hub | Pardaan.com

    […] Bron : Waldo’s Blog Lees meer… […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: