fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.1k stars 35 forks source link

Bug or misconfiguration : Digest information instead of version number #325

Closed manubob closed 11 months ago

manubob commented 11 months ago

Hello,

I'm trying your application for the first time and after several tests I'm not able to show the version number of my current containers, (available version as well) I've only digest information that's not relevant for me.

I'm asking you because I don't find the solution, here my docker-compose of WUD : version: '3' services: whatsupdocker: image: fmartinou/whats-up-docker container_name: wud environment:

And few compose from my containers : version: '3.3' services: linuxserver: container_name: sonarr ports:

version: '3.3' services: rdtclient: image: rogerfar/rdtclient container_name: rdtclient labels:

Is there something wrong or missing ?

14102023

Thank you !

fmartinou commented 11 months ago

Hi,

To have version numbers to work, you need to run immutable tags and not mutable tags like latest is. For sonarr, by example, you must run the image

manubob commented 11 months ago

Hi, Thank you, I can see now the version number, however I'm facing to two issues with the two containers I described in my first post. rdtclient -> There is a new version 2.0.40 but WUD doesn't see it. sonarr -> The version available is a oldest version comparing to the current installed.

Something wrong again :) ?

Thanks[

15102023_2 15102023

](url)

fmartinou commented 11 months ago

Hi,

Regarding rdtclient, that's because your filter regex is wrong. Your regex matches ^v[0-9]\d*.[0-9]\d*.[0-9]\d*$$ whereas there is no leading v in the tag. Try with ^\d+\.\d+\.\d+$$

Regarding sonarr, that's because their tag format is shitty; it doesn't implement semver versioning so the tags cannot be compared to find which is grater/lower.

You can circumvent that by adding a function that will map the original tag name to something else that will implement semver. To do that, you must add a wud.tag.transform label on your container as explained in the documentation here.

manubob commented 11 months ago

Thanks a lot for your support ;)