Replies: 25 comments 4 replies
-
Thanks @itsconquest , not a total dupe (as it looks like the other thread was meant to just keep Portainer itself updated, and this request is about keeping all containers updated) but close enough. Appreciate it! |
Beta Was this translation helpful? Give feedback.
-
@STaRDoGG It wasn't quite clear enough after reading the description, so I have updated the description and re-opened this issue :) Indeed the two feature requests are related, but in fact refer to different functionality in Portainer. |
Beta Was this translation helpful? Give feedback.
-
I have desired this type of functionality for awhile. It boggles my mind that there isn't even a stand alone tool that does this. Tools such as Watchtower and Ouroboros auto-update containers, which often causes problems when major functionality changes exist in new images. |
Beta Was this translation helpful? Give feedback.
-
I would really like this feature, but most importantly, the option to "check for updates". If portainer would show me which containers had updates available, then I could manually click through them all to do the updates. But as @cpcodes said, there's no real alternative currently, except to rebuild all the containers one by one just in case they have updates... |
Beta Was this translation helpful? Give feedback.
-
Automatic update from within Portainer would be great. |
Beta Was this translation helpful? Give feedback.
-
^^ this! should be an option! |
Beta Was this translation helpful? Give feedback.
-
This would be great. |
Beta Was this translation helpful? Give feedback.
-
Be nice to have. Especially since portainer is already doing the registry login. I'm currently struggling with getting portainer, watchtower and ghcr.io to work together with private containers. |
Beta Was this translation helpful? Give feedback.
-
After searching i found this and would like this feature as well. |
Beta Was this translation helpful? Give feedback.
-
This feature was the only reason I just installed Portainer 😄 I'm tired of keeping my Docker containers up to date manually, so I assumed a management GUI would be able to do it for me. Pretty perplexed Portainer doesn't have this functionality. |
Beta Was this translation helpful? Give feedback.
-
Have a look at Watchtower docker image. It also works really well for automatically updating your docker containers. It's not hard to install and configure, you can just install the docker watchtower image. |
Beta Was this translation helpful? Give feedback.
-
Does Watchtower respect starting containers in the right order like Portainer does though? I know, I know... "depends on" is not supposed to be used like that and race conditions aren't taken care of, still better to use that over nothing in a hobby environment over nothing. I mean I am using Watchtower with my Portainer instance, and it seems to work, but it'd be nice if this was a thing in Portainer. |
Beta Was this translation helpful? Give feedback.
-
@Manfred73 , thank you. Could it all be done from within Portainer itself? |
Beta Was this translation helpful? Give feedback.
-
I think it does: https://containrrr.dev/watchtower/linked-containers/ |
Beta Was this translation helpful? Give feedback.
-
Not sure if Portainer supports this already, that's why I started using Watchtower for this as some others suggested. |
Beta Was this translation helpful? Give feedback.
-
The Watchtower links on this page got hijacked, and now point to a shopping site. Just FYI.... |
Beta Was this translation helpful? Give feedback.
-
I'm finding that using portainer combined with watchtower causes unnecessary restarts to containers when they're created via a stack in portainer, watchtower updates them, and then i update the stack configuration from portainer. Any containers that were updated by watchtower since the last stack configuration change, but not modified in the current stack configuration, get recreated by portainer. |
Beta Was this translation helpful? Give feedback.
-
So, this golden feature has totally been 4 years in the backburner. In the same line, the more ignorant suggestion for this userbase is to straight up make an interface within Portainer to manage Watchtower and make the necessary changes for it to behave alongside it. Perhaps that's more realistic. |
Beta Was this translation helpful? Give feedback.
-
I'm hardly using the Portainer interface for managing containers. Always use scripts and docker compose from the command line for that. |
Beta Was this translation helpful? Give feedback.
-
@Manfred73 , for the sake of the interest: what use Portainer for then? As an API provider? |
Beta Was this translation helpful? Give feedback.
-
Please stay on topic. If you want to discuss this, please do it out of band.
Please stay on the topic of issues surrounding auto-updating. You saying you're not using portainer for anything does not help and adds nothing to the conversation. |
Beta Was this translation helpful? Give feedback.
-
@lps-rocks could you enable sub-threads, please? There is nothing wrong/bad about your clients learning new ways to use your product. |
Beta Was this translation helpful? Give feedback.
-
It's not their product, they're a user and an issue participant as they've informed the limitation of Watchtower earlier. They receive messages because they are subscribed and so do I and possibly everyone else here. The irony is that attempts to "backseat moderation" for off-topic simply leads to further off-topic discussion, like this.
Since we are on the topic of the off topic, I believe Portainer has little use for someone who does understand Docker. It's most useful for introducing Docker to a team that does not understand it but could benefit from the ephemerality. One useful thing is that instead of giving full access of every container to everyone in the team by providing a sudoer account, you may use Portainer's role based access control system as an interface to keep the developers in check and create their own services without endangering others by combining this with a registry. I use mine for developers who are learning docker to leave test applications running, the interface has been assisting them in understanding core concepts within the VM I've set up for them, they can easily access logs and set up the policies without spaghetting in the CLI and lambasting the existence of core services such as watchtower that they should not touch. But again, this ultimately feels like a tool for simple things (hence, this ultimately golden feature has been unprioritized for years). For a more robust, production ready, and resource friendly approach, employing Kubernetes clusters with ArgoCD seems to be the superior GitOps approach. |
Beta Was this translation helpful? Give feedback.
-
I'm interested in this feature from a few perspectives: For workloads that are appliance-style containers, having something that performs an auto-update, assuming a well tagged version pin to prevent what should be breaking changes would be quite beneficial. This has been outlined quite well. However, I also would appreciate this from a security concern perspective. I do not want to expose additional services to the Docker socket on my Docker hosts. While Portainer is already treated as a privileged (not in the Capital P Privileged, from the Docker, but the security concept) container, with its agents receiving access to the Docker socket. I do not feel it wise to perform this update. Portainer also already checks container image state, and can detect when updates are available based on the tag you have built the container with. The only additional information it requires to be able to perform this task is a timeframe to perform automatic updates, and a way to flag containers to opt in/out of the scheduled updates. As it stands now, in order to get this functionality, I'm in the process of writing a tool that uses the Swagger-generated API client to be able to iterate through the containers in an environment, detect if they need updates, compare that with a list of containers I wish to update, and to perform the updates via cron. I could do this by creating webhooks for each container I want to auto-update, and call those individually, but in some senses, I'm writing this as a proof of concept for how the update function could work using Portainer's own data, and even then, I wouldn't be able to pull the data on whether a container needed updating by triggering a webhook, leading to needless service restarts. As a part of the CI pipeline, the webhook feature is more than sufficient, and works great. However, for cases where these appliance-style workloads are being run, which could be all sort of back office or general business workloads, having Portainer be able to automatically manage the updates for these systems would be a great boon to the operators maintaining those systems. |
Beta Was this translation helpful? Give feedback.
-
I fully agree with @belthesar's comments. From a professional, security point of view, Watchtower is not an alternative and |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently there is no container updating functionality within Portainer, so I use a WatchTower container to keep my containers up to date instead. It's good, but also a little bit quirky to use, i.e. for manually updating a single container.
Describe the solution you'd like
It would be great if Portainer has similar functionality as WatchTower for updating any containers being managed. This could look like:
Additional context:
Related to #3197
Beta Was this translation helpful? Give feedback.
All reactions