Force docker image update check...

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
It seems to take quite a while before Scale 22.12.2 sees a docker container having a new version on docker.com. Is there a way to force a check?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I've answered this elsewhere before, but the short version is that you're working with charts, not directly with the image on docker or whatever container registry.

The chart itself has a version and contains reference to which version of the image should be used.

Until the chart is updated (by the chart owner/catalog), there's nothing SCALE needs to do, so it does nothing.

Is there a way to force a check?
Short version: make your own catalog and update the charts as quickly as you like or contribute to the catalog maintainer communities to help make the updates arrive faster.

In the case of "Launch Docker Image" Apps, if the image tag "latest" is selected and the Pull Policy is set to "always pull...", a restart of the app should be enough.
 

hunsra

Cadet
Joined
Mar 26, 2017
Messages
4
Seems like there is a way to do this if Charts has an update that your instance of TrueNAS hasn't received yet. I was waiting for an update the Plex app to appear, so I decided to navigate to "Discover Apps" and then clicked on "Refresh Charts". Once that completed and I returned to the Apps page and refreshed the page with my browser, the update appeared.
 

blacksteel75

Dabbler
Joined
Feb 26, 2019
Messages
28
How can I force a refresh to get the 'latest' with a private image from a registry?

You can't use "Always Pull..." if you're using a Custom App with a private image, because it requires a login and will fail when you restart. So, you have to add the image manually using Settings -> Manage Container Images and then set your Custom App to "Only pull if not present".

The problem is that if you update your private image in the registry, TrueNAS SCALE doesn't see that change immediately and there is no way to trigger the refresh process manually.

This means, to update an app using a private image, you have to go into Manage Container Images, delete the private image (even if it has the 'latest' tag, because the "Update" button is grayed out), then re-install a new version of that 'latest' image manually, then go back to your app and stop/start it.

If there was just a simple way to run whatever the process is inside of TrueNAS SCALE that checks if there is a new image in a registry, you should be able to just pull a new image and stop/start your Custom App.

Even better would simply be to allow you to change your Custom App to use "Always Pull..." and have it recognize that you're using a private image (where you've saved your credentials) and pull that image's 'latest' from the registry.
 
Top