Skip to content
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

docker swarm service update #43

Closed
edouardkleinhans opened this issue Jan 16, 2017 · 21 comments
Closed

docker swarm service update #43

edouardkleinhans opened this issue Jan 16, 2017 · 21 comments

Comments

@edouardkleinhans
Copy link

Is it possible to trigger an update to a docker swarm service ?

@edouardkleinhans edouardkleinhans changed the title Update docker swarm service docker swarm service update Jan 16, 2017
@stffabi
Copy link
Contributor

stffabi commented Jan 16, 2017

At the moment watchtower can only update local running containers. I've briefly taken a look into the api, I think it should be possible to enhance watchtower with this functionality.

@ragemac
Copy link

ragemac commented Feb 3, 2017

That would be of great help for us as well. I hope we see this functionality soon. Thank you for your hard work

@dcrystalj
Copy link

this feature is must for future. Im looking forward to see this one day

@pjutard
Copy link

pjutard commented May 9, 2017

🙏

@oguya
Copy link

oguya commented May 11, 2017

👍

@oguya
Copy link

oguya commented May 11, 2017

Would deploying watchtower service to all manager & worker nodes in a swarm cluster achieve the same functionality as is in non-swarmed nodes??

@djmaze
Copy link

djmaze commented May 11, 2017

@oguya No, it does not work, because swarm manages the running containers itself.

As it turns out, automatically updating containers in a swarm-mode cluster is a lot simpler, since swarm itself queries the registry and updates the running containers every time you call swarm update --image. That means you just need to trigger a service update.

That is what I have just done with shepherd.

@danieljuhl
Copy link

@djmaze looks interesting.. I assume shepherd needs to be constrained to the manager ?

@djmaze
Copy link

djmaze commented May 11, 2017

@danieljuhl You are right, of course. Also there needs to be exactly one replica running.

I updated the README accordingly. Thanks!

@lnshi
Copy link

lnshi commented Jun 28, 2017

+1

@Dunky13
Copy link

Dunky13 commented Oct 3, 2018

Is there any update on this issue?

Seems like Shepherd does the job: https://github.com/djmaze/shepherd But I'd rather have one program updating my containers

@dhruvit01
Copy link

+1 https://github.com/djmaze/shepherd seem to be working fine. Just a concern that I see that logs talks about updating service all the time, regardless if the base image is changed or not...

@Dunky13
Copy link

Dunky13 commented Mar 11, 2019

@dhruvit01 exactly, That's an issue I'm experiencing with shepherd... And would like watchtower to pick up where they slack off.

@dhruvit01
Copy link

@Dunky13 : Agree. At this point I am using both but would like to have watch tower to support swarm. Any news/timeline on if/when this should be coming in?

@simskij
Copy link
Member

simskij commented May 12, 2019

With that said; what are the actual functional requirements? Would someone even like to have a stab at implementing it? If so, feel free to - I'll make sure to review the PR. Thanks 🙏

@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale label Jul 30, 2019
@stale stale bot closed this as completed Aug 7, 2019
@Dunky13
Copy link

Dunky13 commented Sep 11, 2019

Don't think this should be closed or stale imho. It's an issue that can/should be addressed in the future. Closing it will put in too much in the background.

@sixcorners
Copy link
Contributor

If I use local containers and swarm containers will this try to update the swarm containers?
Does this at least support swarm insofar as it will skip them?

@simskij simskij reopened this Mar 18, 2020
@stale stale bot removed the Status: Stale label Mar 18, 2020
@simskij
Copy link
Member

simskij commented Mar 28, 2020

@sixcorners I don't know to be totally honest as I don't use swarms myself. Feel free to try and report back! 😅

@containrrr containrrr deleted a comment from bf8392 Apr 12, 2020
@simskij
Copy link
Member

simskij commented Apr 27, 2020

Closing this issue. As @stffabi stated previously, the swarm support is currently extremely limited (if any). If you have any more specific errors, or would like to have a stab at implementing more thoroughly covering swarm support, please open a new issue and/or PR respectively.

Thank you.

@simskij simskij closed this as completed Apr 27, 2020
@ghost
Copy link

ghost commented Apr 27, 2020

To avoid important communication to get lost in a closed issues no one monitors, I'll go ahead and lock this issue. If you want to continue the discussion, please open a new issue. Thank you! 🙏🏼

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests