Automatically Updating Home Assistant Container (and other Docker Containers)

Automatically Updating Home Assistant Container (and other Docker Containers)

Home Automation Guy

2 года назад

28,075 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

John Plagianakos
John Plagianakos - 02.08.2023 19:17

How do you handle the change of containers IPs every time the system restarts, since static IPs are needed in yaml files as well as in HA itself?

Ответить
Spyros Nicolaou
Spyros Nicolaou - 04.06.2023 17:47

Amazon series! great job!
can I ask you if please if can you make a video that you explain how to install and configure pi-hole
thank you

Ответить
Re Be
Re Be - 28.05.2023 23:02

in a hurry?

Ответить
Larpull
Larpull - 19.05.2023 03:02

More docker videos!!

Ответить
Josh
Josh - 10.02.2023 02:00

I’d just like to take a moment and thank you for your awesome video series and blog posts with Home Assistant and Docker. Incredibly helpful, and well put together. I was just thinking earlier today that I wanted to automate my updates and backups- sure enough you have walkthroughs on both! Subscribed!

Ответить
Rey Ramos
Rey Ramos - 15.01.2023 19:13

Love your videos, been following through and now have an Ubuntu Desktop running all of my containers with Homeassistant among other things. I have a question, how do you monitor your host? Do you use something like Checkmk? If you already have a video for this then please send me the link. Otherwise this would be a great topic for a video. Keep up the good work!

Ответить
Foodgeek
Foodgeek - 04.01.2023 20:29

I'm using Portainer and their stacks feature, so I don't have the docker-compose.YAML file in the file system to run the update.

Instead, I am using watchtower, which works quite nicely :)

Otherwise, you have tons of good information in your videos. Keep it up :)

Ответить
Andrea Carbone
Andrea Carbone - 03.01.2023 21:17

Great video! I've just a suggestion. Running docker prune commands without conditions can be dangerous. If, for any reason, docker-compose up -d will not work, you will delete all your volumes and images! Just something like this would help

if ! docker info > /dev/null 2>&1; then
docker image prune -af
docker volume prune -f
fi

Checking individual containers one by one would be even better

Also (I'll stop, I promise), if you are not doing it already, for handling the auto-start for docker containers, you could use a simple
sudo systemctl enable docker
You only need to run it once, and it will be executed as a service at every boot.

Ответить
UcantBeSerious03
UcantBeSerious03 - 31.12.2022 13:29

tks 4 the series

Ответить
Mitch Wilson-Brown
Mitch Wilson-Brown - 30.12.2022 22:28

This playlist is top notch. I originally planned to run the OS, but at the last minute found this docker series and I'm so glad I did. It's so clean!

Ответить
Dominik Zalewski
Dominik Zalewski - 20.12.2022 13:21

Best YT channel on home automation period! Small suggestion to the update script is to add "set -o pipefail" after shebang which basically will stop the rest of command if any of them fail. It's general bash script good practice ;) I have very similar update script running once a week but its written in python and has pushover notification at the end to tell me if it was successful or not :) Great series of videos on running HA in docker. Love it!

Ответить
Dan Warner
Dan Warner - 03.12.2022 07:12

Alan thanks so much. Your video & blog made it possible to understand using the Docker container option for running HA. This has been a project that I have wanted to installing on a low power ( I-3) for some time. Thanks & keep up the excellent video work and blog. Dan

Ответить
Mr Barrington-Smythe
Mr Barrington-Smythe - 03.10.2022 23:21

That's a nice neat script. Have you also tried using Watchtower? It can also delete old redundant docker images.

Ответить
nabeelr
nabeelr - 16.09.2022 07:04

I believe it's "Hash-bang" as in "hash symbol, bang symbol". Hash, also know as the pound or the number sign, and Bang, also known as an exclamation point or the "not" symbol.

Ответить
havkacik
havkacik - 02.09.2022 23:32

Increidble video. Is it posisble to install docket compose on Raspberry Pi? I understand that would be a pre-requisite for automatic updates and supervision

Ответить
Molehill Tech
Molehill Tech - 11.08.2022 19:28

You rock, this video series didn’t only let me finally understand how docker works. It made converting from Home Assistant OS to docker a breeze! Thanks a lot!!! It freed up my server to run other (dockerized) services.

Ответить
Jon Campbell
Jon Campbell - 23.05.2022 02:12

G'day from Aus!
I love the videos! I've now replicated your docker compose config and also the Duplicati backups. My issue is that the script errors when I run to update. THe error states

Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?

Supported filenames: docker-compose.yml, docker-compose.yaml



The script is located in /opt/docker/ and the docker-compose.yml file is also in the same location. Can you please confirm the required permissions on the file in case that is the cause of my issue?

Thanks and keep up the videos, they are awesome!!
Jon.

Ответить
T
T - 12.05.2022 22:32

Thank you! You are the best :) Really enjoy your content!

Ответить
Alan Kinrade
Alan Kinrade - 11.05.2022 12:38

Great set of videos. My smart home was controlled by Habitat/HomeKit/Homebridge and my set-up was getting very untidy. I've been following along over the last few months and have abut 50% changed over to Home Assistant now and loving it. I not 100% there with the Docker, would love to see video on how to set-up Pi-Hole in Docker. I did try it but ran into a few issues. 
PS. Aqura cubes on order from China, can't wait to try them out :-)

Ответить
MrSupersidewinder
MrSupersidewinder - 11.04.2022 02:00

I did all of this and ran it manually, seemed all good, created the cron job... I was expecting an update to happen but my HA is showing Version 2022.3.8- Frontend version 20220301.2 latest. Did yours update to the new 2022.4???

Ответить
Rufi Romang
Rufi Romang - 10.04.2022 05:02

When using docker, we dont have HACS. Is there any way to have HACS on docker? Or we dont really need one? Please do a video about installing it on home assistant docker

Ответить
Ahmed Abdalla
Ahmed Abdalla - 08.04.2022 20:14

i use Watchtower to update my containers, it will do the same job you explained with less headach.

Ответить
J Sob
J Sob - 04.04.2022 16:25

Great video series would really love to see one on setting up pihole in a container because of the ports mainly...

Ответить
Ketil Jørstad
Ketil Jørstad - 03.04.2022 12:02

where is the content of your docker-compose.yaml file?

Ответить
Mitchell Richards
Mitchell Richards - 26.03.2022 07:19

Great video, would love to see a good Mosquitto docker compose setup guide in this series as well as pi-hole.

Ответить
Daniel Cagarrinho
Daniel Cagarrinho - 25.03.2022 12:19

How can i automatically update the containers running Docker Engine on Debian 11?

Ответить
MErevGe
MErevGe - 24.03.2022 23:25

It would be nice if you could show us how to set up some things like Grafana, link Node-Red correctly to HA and Alexa or build a Heimdall web UI for general overview. And thanks for the nice video.

Ответить
Robert Postma
Robert Postma - 24.03.2022 10:14

Great video as usual! I use Watchtower as an update solution for all my containers

Ответить
Tom Carpenter
Tom Carpenter - 24.03.2022 01:39

Great Job love it

Ответить
Israel E. Bethencourt
Israel E. Bethencourt - 23.03.2022 23:50

"cron is stupidity complicated" very underrated comment 😅

Ответить
Matija Semenič
Matija Semenič - 23.03.2022 21:16

I just recreate container through portainer, to update containers.

Ответить
drbyte2009
drbyte2009 - 23.03.2022 21:00

Great video again !
I would like to see how to setup Node Red and use it with Homeassistant.

Ответить
Martin Chinery
Martin Chinery - 23.03.2022 19:15

Great series of videos and I learnt a great deal from them. Seriously considering moving from HASSOS to this method. I would love to see some other videos on installing docker add-ons that are commonly used such as Zigbee2mqtt/Mosquitto, ZwaveJS, and Node Red as examples.
Many thanks for all that you provide.

Ответить
Jörg Weichelt
Jörg Weichelt - 23.03.2022 18:19

Really like your approach towards the HA installation. Will it work on my Pi as well?

Ответить