-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Self update to avoid Docker restarts #433
Comments
Is this planned to be a configurable option we can turn off, or better yet a seperate build we can avoid altogether? While the convenience of not having to restart dependent containers is certainly attractive, I have serious concerns with the software stack in my VPN layer changing itself without my intervention or potentially even knowledge. VPN is one of only a few containers I specifically DON'T let watchtower autoupgrade to latest and instead pin to a specific version, because I want to review and control any changes to my security and privacy controls. It's not my intent to start any kind of holy war, but it also seems to me to be against generally accepted container best practices to build mutable containers. |
Totally agree, this will obviously be optional 👍 Note that this will only be active for |
Is this still planned? My linked qbittorrent container goes down whenever I update gluetun (like every day or two!) and can't be brought back to life via watchtower, I have to log into my server via ssh and remove and recreate it. Then sonarr, radarr etc complain that qbittorrent is missing so I have to restart them...... Not having so many knock-on effects from having recreated gluetun would be very worthwhile IMHO! |
Yes still planned but 0% progress for now. It might be canceled if it gets solved another way (see below).
I'm working on another container deunhealth to restart unhealthy containers (similar to https://github.com/willfarrell/docker-auto-healing but faster and smaller, with a streaming of events from the Docker socket), with a target usage for gluetun connected containers. I'm also thinking of having it inject a tiny program (e. g. |
I'm not who you asked, but since I'm in this issue as being against the mutable container approach, thought I would add that I love that idea personally. Solves the problem you are trying to resolve in this issue without making your container harder to trace what the runtime is. Additionally, this would be generally useful even outside this scenario. Love the idea. |
|
|
|
Sorry I missed your comment. Thanks! I'm slowly working on it, but it should be out relatively soon, I'll ping back here once it's there. Although personally I don't like containers accessing the docker socket / injecting binaries in other containers / restarting other containers (paranoia I guess), but I would also use it... convenience > security I guess... 😄
|
@qdm12 It's definitely a balancing act to be sure, I'd recommend checking out docker-socket-proxy if you end up going down the deunhealth path. It gives a good balance between convenience and security when mounting the docker socket. |
Ha yes, I even developed something similar in Go a few years ago. But the problem is that you then need to trust that proxy 😆Although it gets useful if you have many containers using the Docker socket. I think signed releases and/or build it yourself (with |
just a side note, autoheal does only restart the container, and not rebuild them. So after Watchtower does update gluetun, the other container need a rebuild, instead of a restart. if you are building in that direction, that would be awsome!! |
@kubax Are you sure? They don't need to be rebuilt in my experience. Why would they need to be rebuilt? Although they might need to be stopped, removed and started instead of just restarted, that's a fair point. |
In my experience a restart results in them not finding the attached network anymore. Stopping, removing and starting might also work... |
Actually I tested that and it seems to work when you do a @agrider I made this: https://github.com/qdm12/deunhealth to restart unhealthy containers that have the It's quite similar to
There is also more to come in the coming days which would especially fit gluetun's use case such as:
|
Hey @qdm12, any progress on that one? I am having the same issue where Watchtower updates Gluetun and then deluge stops working even after a restart. I get a "No such container blabla" error message. Like @kubax , I need to rebuild the containers in order to get the network connection back up. I am thinking of excluding Gluetun and Deluge from Watchtower. Do you have any suggestion on the current best approach for that issue? Thank you |
I believe you can update connected containers, it's just updating gluetun will disconnect containers. I personally just do |
This issue conversation captures the whole problem: qdm12/deunhealth#11 Thank you @qdm12, it's not urgent, thanks for the time your putting into maintaining this. |
any progress here? Can I just skip updating Gluetun? |
Slowly working on it (snail speed). But yes you can skip updating gluetun. I personally only update manually every month or so together with its associated docker images in its stack. |
I look forward to having this feature! Thanks |
+1 |
What's the feature? 🧐
Optional extra information 🚀
The text was updated successfully, but these errors were encountered: