How does auto-update work? #238
Replies: 7 comments 5 replies
-
Would also like to ask. I don't have auto update enabled but auto poll is. how do i know if theres a new image update available? from docs, i think it should be in Alerts? but i haven't seen one notification from there yet |
Beta Was this translation helpful? Give feedback.
-
The auto poll for update works by using docker pull with Deployments, or docker compose pull in the case of Stacks. It will run this on an interval set by resource_poll_interval in the config: https://github.com/mbecker20/komodo/blob/main/config/core.config.toml#L373. By default this is every 5 minutes. If there is a newer image available, then the newer image will be pulled, and Komodo will know that the hash between running image and latest image does not match. This is how it checks for update available, through combination of docker pull and hash equality check. If this is detected, Komodo will send the information on the resource.info.update_available field for Deployments: https://docs.rs/komodo_client/latest/komodo_client/entities/deployment/struct.DeploymentListItemInfo.html#structfield.update_available. For Stacks, it must be done at the service level, eg stack.info.services[0].update_available: https://docs.rs/komodo_client/latest/komodo_client/entities/stack/struct.StackListItemInfo.html#structfield.services. It will also send the Alert when it sees the hash mismatch: If you enable auto_update, a redeploy will be triggered when it finds hash mismatch for the images after docker pull. Let me know if you have any more questions! |
Beta Was this translation helpful? Give feedback.
-
Hi! In my stacks, I can see "update available" is there a new update available. Is there a way to see all available updates of all stacks in one point? And maybe update all per one click? |
Beta Was this translation helpful? Give feedback.
-
@Solear I have added update available indicator in the Stack list table to more easily see an overview in 1.17 (unreleased). In terms of updating all Stacks with available updates, you can already make a new "Action" which can do this. Go to the Actions tab and make a new one called "update_all", with this Javascript: // Collect all the Stacks with available update
const stacks_with_update = (await komodo.read("ListStacks", {})).filter(
(stack) => !stack.info.services.every((service) => !service.update_available),
);
// Trigger deploys on all of them to perform the update
Promise.all(
stacks_with_update.map(async (stack) => {
await komodo.execute("DeployStack", { stack: stack.name });
console.log("Triggered update on Stack", stack.name);
}),
); |
Beta Was this translation helpful? Give feedback.
-
Wow is this Action a new feature?
Is the Updates Available button now clickable on mobile?
…On Thu, Feb 20, 2025, 2:31 AM Maxwell Becker ***@***.***> wrote:
@Solear <https://github.com/Solear> I have added update available
indicator in the Stack list table to more easily see an overview in 1.17
(unreleased).
In terms of updating all Stacks with available updates, you can already
make a new "Action" which can do this. Go to the Actions tab and make a new
one called "update_all", with this Javascript:
// Collect all the Stacks with available updateconst stacks_with_update = (await komodo.read("ListStacks", {})).filter(
(stack) => !stack.info.services.every((service) => !service.update_available),);
// Trigger deploys on all of them to perform the updatePromise.all(
stacks_with_update.map(async (stack) => {
await komodo.execute("DeployStack", { stack: stack.name });
console.log("Triggered update on Stack", stack.name);
}),);
—
Reply to this email directly, view it on GitHub
<#238 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGD6KR75LMK75QQXWXLBIL2QTEX5AVCNFSM6AAAAABUCF7TLWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRVGM3DEMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@mbecker20 thanks for the explanation! Is there a way to control the auto-update window? E. g. right now Komodo seems to be updating a container as soon as it discovered a new image available. For some services this is not desirable — I'd rather have them updated at a specific time at night. Example: Plex container updating in the middle of a movie — I'd rather have it updated between 3 am and 5 am or something. Is it achievable? |
Beta Was this translation helpful? Give feedback.
-
I Didn't know WUD can do that?
…On Tue, Jun 24, 2025, 12:35 AM Sebastian Jost ***@***.***> wrote:
Thanks for your feedback and also the recommendation regarding renovate.
Already thought about this some time ago. But for now I will stay in this
case with WUD regarding about notifications which is working flawless.
—
Reply to this email directly, view it on GitHub
<#238 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGD6KWTROYIGWYB2I6TNSD3FAUEHAVCNFSM6AAAAABUCF7TLWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNJVGMZDSMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Basically the title - how does auto update work? I enalbed both options but it doesn't update the stack and a new update is visible through portainer.
Is there an indicator I have to set or is updating a stack only manually possible?
Beta Was this translation helpful? Give feedback.
All reactions