getwud / wud

WUD (aka What's up Docker?) gets you notified when a new version of your Docker Container is available.
https://getwud.github.io/wud/
MIT License
1.28k stars 39 forks source link

Update kind: unknown #234

Open tapufd opened 1 year ago

tapufd commented 1 year ago

Using image zedred/apcupsd-cgi:latest, but this one show Update kind as unknown. Even tried with labels:

fmartinou commented 1 year ago

Hi,

update kind can have the following values:

I've tested with your zedred/apcupsd-cgi:latest image and please find below the JSON saved by WUD

{
  "id":"ec4dc4b729e9e3aa31a5434ed9a491b55ff787950798c03c42e4bd5e0585eff6",
  "name":"apcupsd",
  "status":"running",
  "watcher":"local",
  "includeTags":"^latest$",
  "displayName":"apcupsd",
  "displayIcon":"mdi:docker",
  "image":{
     "id":"sha256:39f2ec89cd4352ea988673bf53bde5e8a31ef848a5db7c280acafb5609b94619",
     "registry":{
        "url":"https://registry-1.docker.io/v2",
        "name":"hub"
     },
     "name":"zedred/apcupsd-cgi",
     "tag":{
        "value":"latest",
        "semver":false
     },
     "digest":{
        "watch":true,
        "repo":"sha256:2ce8b87586b66a7fa97f671f94538ddaa615d8ff2cfa536dec97553085ca2eca"
     },
     "architecture":"amd64",
     "os":"linux",
     "created":"2023-03-03T23:03:45.915Z"
  },
  "updateAvailable":false,
  "updateKind":{
     "kind":"unknown"
  },
  "result":{
     "tag":"latest",
     "created":"2023-03-03T23:03:45.915Z"
  }
}

Here you can see that update_kind is unknown because there is no update ("updateAvailable":false)

Which is the value of the update available property on your end? If it's true, then it's a bug, else it's normal.

tapufd commented 1 year ago

Hi, Thanks for the feedback already. Let me explain what happened... I had the container running and WUD didn't mention there were updates, which was correct. Then a few days ago an update was done of the image, because WUD told me that the container with unknown can be updated to unknown. I didn't understand what was happening, but on docker hub I saw that the image was updated a few days ago. So the warning was correct, except it was strange with the unknown in it. So I pulled the image again, and there was indeed a new latest one. But after updating and using the latest image, WUD still keeps saying there is an update for it. See attached screenshots. Screenshot 2023-03-05 143715 Screenshot 2023-03-05 143936 Screenshot 2023-03-05 143952 But I see now that the digest value (sha256:...) is still different for me, or maybe I'm looking wrongly. However I always pull the latest version, and no new image is downloaded for me. Maybe I should try to get that JSON output from my side... how is that done? /T

tapufd commented 1 year ago

To be 100% sure, I deleted my local image, so that it was forced to download it from the internet. And now suddenly WUD doesn't complain anymore of an update. :-s However, my feeling says that when there is another update done of that latest image, WUD will mention again there is an update available (which is good), but again with the strange unknown in it: "Container apcupsd-cgi running with unknown can be updated to unknown." (which is what I always get when this latest image is updated) /T

tapufd commented 1 year ago

Hi, I have the same problem again: image

-> message = Container apcupsd-cgi running with unknown can be updated to unknown.

The trigger is indeed correct: image But the message isn't.

I think "unknown" should be replaced with a digest number. Isn't it?