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

Question: self updating application #64

Closed
pauldotknopf opened this issue Feb 23, 2017 · 2 comments
Closed

Question: self updating application #64

pauldotknopf opened this issue Feb 23, 2017 · 2 comments

Comments

@pauldotknopf
Copy link

I have a web application that needs to support updating itself.

My user interface will query a docker registry, and determine if updates are available. If there is a new image, I will download it and add it to my docker host. I will be doing this inside of my application (using /var/run/docker.dock).

Watch tower will eventually see that an image is updated, and it will restart the container that installed the image.

My problem is that I need my web application to perform this at a very exact moment. When my users press "update", the update can't begin later, it must happen at that exact moment.

This brings me to my main question.

What about adding support for an HTTP/REST api for manually triggering the update of a container?

@SStorm
Copy link

SStorm commented Mar 21, 2017

Got a similar situation, but I figure I can work around that by only downloading the image when the user presses "update".

The bigger issue here is the lack of a rollback capability if things go wrong.

@simskij
Copy link
Member

simskij commented Apr 2, 2019

This will be addressed in issue #262. Feel free to participate in that issue instead. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants