Home Assistant Community

Updating Home Assistant inside Docker

#62

uff, not sure I can hep more. Perhaps try Discord.
Sorry

#63

I really appreciate it anyhow, once I resolve this - I’ll update here, thanks a lot @juan11perez

#64

welcome. sorry i couldnt help resolve.

#65

From what I remember, ssh is very particular about the permissions of the key files and its directory.

Make sure that the directory that contains the key files is readable only by the user using them, and the private key is the same. Otherwise ssh refuses to work.

#66

I just wanted to clarify that you are never meant to update anything inside a docker container. Docker exists so that developers (and others) can create a container that works anywhere its run, and if you change anything inside the container, that defeats the whole purpose. Those who run HA using Docker, will never update the HA instance in the container, but the entire image. This prevents anything breaking.

2 Likes
#67

Hi, how can I add that label I don’t understand I’m new in Docker I have watchtower installed with Docker compose, and hassio, thank you

#68

In your case as you’re using Hassio, you cant add any label to Hassio as it’s managed by the systemd start up file. It’s not in your docker compose.

So the solution is to do the opposite, basically specify the dockers you want to update via Watchtower.

For that you need to do the following:
In watchtower add:

command: --debug --label-enable --cleanup --interval 300
labels:

  • “com.centurylinklabs.watchtower.enable=true”

the --label-enable command will tell watchtower to update only the dockers that have the following:

labels:
- "com.centurylinklabs.watchtower.enable=true"

so you add that section to every docker you want auto-update

hope it helps

1 Like
#69

Thank you, well explain, do all the steps on all my containers, let’s see how it goes, now I have to figure out how to set the notifications with watchtower in docker compose

#70

Im running 0.88.2 and 0.89 is out, how do I force hassio to see the update?

#71

You wait patiently until the update is ready.

#72

and how do I cope if after the upgrade I don’t see the bug fix I’m waiting? :smile::smile::smile:
Thanks!

#73

With a stiff upper lip :wink: