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

Feature Request: Docker Pull #20

Open
Norien opened this issue Jul 23, 2018 · 5 comments
Open

Feature Request: Docker Pull #20

Norien opened this issue Jul 23, 2018 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@Norien
Copy link

Norien commented Jul 23, 2018

I'd love to have a button in home assistant which would pull the lastest image for some of my containers. Do you think it would be possible to add a curl command much like the restart?

@philhawthorne philhawthorne added the enhancement New feature or request label Jul 23, 2018
@philhawthorne
Copy link
Owner

Hey @Norien absolutely!

I have a few ideas floating in my head to do this. I've been meaning to get around to it. My end goal is to have a one-click script in Home Assistant that takes down HASS, does a docker pull, then brings it back up with the new version running.

So, watch this space!

@elRadix
Copy link

elRadix commented Aug 13, 2018

I use watchtower to have dockers images upgraded automagically
https://github.com/v2tec/watchtower

@philhawthorne
Copy link
Owner

@elRadix haven't used WatchTower, but agree that would be an alternative.

My current plans are a basic docker pull support, allowing Home Assistant to fire of a REST call, which will upgrade the image, then stop the Home Assistant container, remove it, and re-create a new one with the latest image.

Very similar to what WatchTower does, but with the added bonus of being a button inside Home Assistant.

@elRadix
Copy link

elRadix commented Aug 13, 2018

@philhawthorne
It's same thing what Watchtower does (remove it, and re-create a new one with the latest image) with added bonus that you'll get a notification whenever an image is updated.

Having a manual button might be great, but then you need to know when to push it if there in upgrade available for each image...

@philhawthorne
Copy link
Owner

Absolutely 😸

If people are already running HA-Dockermon, users don't have to then run WatchTower as well. The manual button might also be good, if users would like to skim the release notes for breaking changes first.

Otherwise, people could use the updater component in Home Assistant to fire off a REST call to HA-Dockermon to upgrade the image. Either at a certain time each day, or when the update is detected in Home Assistant.

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

No branches or pull requests

3 participants