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.
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.
I plan on exploring all of these services myself and will be creating videos on them eventually. When I do I'd like to cover how to install them both as an Add On and as a Docker Container.
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!
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.
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!
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 :)
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
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.
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 :-)
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!
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.
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
Installing HACS on Home Assistant Container is exactly the same as installing it on Home Assistant OS. I made a video about it earlier which you can find on my channel.
Thanks a lot for the series this is very helpful! Do I need to use sudo in these scripts in /opt using cron jobs? Seems in your scripts you do not have sudo and when I try to run these individually it requires sudo. thanks!
Trying to update and getting Errors when running the "docker-compose up -d" command with "ContainerConfig". I read somewhere to use "docker compose" instead of the "docker-compose" with the hyphen is now deprecated. however when I try it seems to be conflict with my "docker-compose.yaml" file. Do I need to change my yaml filename? Or is there something else to do to get current?
You should be adding an ip reservation in your home router or mesh system. Find what IP the server is using after a booting up and then go into home router and reserve that IP. Its a standard feature in routers but usually found in advanced settings or something like that. Once done the server will always use the same one. The alternative is that you actually set an IP on your server in the network config but you have to be sure nothing else on your network will try to use that in the future so a reservation is usually safer
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???
I have the same problem ... I can see that the script ran, but the containers didn't update ... running the script manually works as expected. Have you found any solution?
@@MrSupersidewinder what docker compose version you have? (run: "docker compose version") ... I had to use version 2 instead of version 1, because I am running on RPi and there were no docker compose builds for arm
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.
Thanks for the comment! Are you CDing into the /opt/docker directory before running the script? Do you have any CD commands in the script that might be moving you out of that directory when you run it?
@@HomeAutomationGuy Yes I am CD'ing into the directory first. The script is a direct copy from your script. Scratch that!... The CD in the script was taking it to /opt but my details are in /opt/docker/
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!
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.
Glad it was useful!
Great video, would love to see a good Mosquitto docker compose setup guide in this series as well as pi-hole.
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.
I plan on exploring all of these services myself and will be creating videos on them eventually. When I do I'd like to cover how to install them both as an Add On and as a Docker Container.
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!
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.
Hi Alan, Thank you for taking the time to make this series of videos
You are most welcome.
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!
Great video again !
I would like to see how to setup Node Red and use it with Homeassistant.
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 :)
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
Thanks Dan! I really appreciate it!
Great video series would really love to see one on setting up pihole in a container because of the ports mainly...
I have that on my list of videos to make, stay tuned ☺️
3:09 I've got seperate compose files for each container, can I run it separately?
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.
I've not taken a look at Node Red yet, but I will be sure to make a video about it and include these items when I do.
Was reviewing this today and found that docker-compose has been deprecated in favour of ‘docker compose’ - just remove the -
Thank you. Blew up my docker for a bit and had to remove containers and rebuild. Small change and we're good.
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 :-)
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!
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
Thank you! You are the best :) Really enjoy your content!
Great video as usual! I use Watchtower as an update solution for all my containers
Me to, very reliable. I have it send out notifications to pushover on my devices.
Same! For added security, I tandem it with docker-socket-proxy in a dedicated virtual network
I've not heard of Watchtower. I'll be sure to check it out, thanks for the tip!
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.
Well there you go!
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
Installing HACS on Home Assistant Container is exactly the same as installing it on Home Assistant OS. I made a video about it earlier which you can find on my channel.
@@HomeAutomationGuy ah ok noted. Thanks a lot
Thanks a lot for the series this is very helpful! Do I need to use sudo in these scripts in /opt using cron jobs? Seems in your scripts you do not have sudo and when I try to run these individually it requires sudo. thanks!
I think my cron jobs run as root, but I am definitely not a linux expert and mostly just make it up as I go along with trial and error.
More docker videos!!
Really like your approach towards the HA installation. Will it work on my Pi as well?
Generally speaking yes, but is quite heavy for a Raspberry Pi
Trying to update and getting Errors when running the "docker-compose up -d" command with "ContainerConfig". I read somewhere to use "docker compose" instead of the "docker-compose" with the hyphen is now deprecated. however when I try it seems to be conflict with my "docker-compose.yaml" file. Do I need to change my yaml filename? Or is there something else to do to get current?
I still have the hyphen in my config file, but you're right about no longer using it for the command
That's a nice neat script. Have you also tried using Watchtower? It can also delete old redundant docker images.
No, I've not tried Watchtower yet!
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?
You should be adding an ip reservation in your home router or mesh system. Find what IP the server is using after a booting up and then go into home router and reserve that IP. Its a standard feature in routers but usually found in advanced settings or something like that. Once done the server will always use the same one. The alternative is that you actually set an IP on your server in the network config but you have to be sure nothing else on your network will try to use that in the future so a reservation is usually safer
Great Job love it
tks 4 the series
"cron is stupidity complicated" very underrated comment 😅
🤣
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???
Yep, mine automatically updated to 2022.4 on Saturday morning
I have the same problem ... I can see that the script ran, but the containers didn't update ... running the script manually works as expected. Have you found any solution?
@@vojtechjeso Nope, I am still running the update script manually... Strange but it does a perfect job when run...
@@MrSupersidewinder what docker compose version you have? (run: "docker compose version") ... I had to use version 2 instead of version 1, because I am running on RPi and there were no docker compose builds for arm
@@vojtechjeso Version 3
How can i automatically update the containers running Docker Engine on Debian 11?
I think it should work the same way - Ubuntu and Debian use similar bases I believe.
after manually executed this commands everything is dead 😞
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.
Thanks for the comment! Are you CDing into the /opt/docker directory before running the script? Do you have any CD commands in the script that might be moving you out of that directory when you run it?
@@HomeAutomationGuy Yes I am CD'ing into the directory first. The script is a direct copy from your script. Scratch that!... The CD in the script was taking it to /opt but my details are in /opt/docker/
Thanks! Keep up the great work! Now time to go back and watch more of your videos!
i use Watchtower to update my containers, it will do the same job you explained with less headach.
I've not used Watchtower, but it looks really powerful. Thanks for sharing!
I just recreate container through portainer, to update containers.
Can you do it in a cron job?
in a hurry?