Quick Home Assistant setup with Docker
-
I wrote this
start.sh
bash script to run Home Assistant for the Youtube demo but you could also use it to try out Home Assistant and/or the TRIGGERcmd integration for it:#!/bin/bash mkdir -p ~/ha/config docker run -d \ --name homeassistant \ --privileged \ -e TZ=America/Detroit \ -v ~/ha/config:/config \ -v /run/dbus:/run/dbus:ro \ -p 8123:8123 \ --rm \ ghcr.io/home-assistant/home-assistant:stable
This shows my session where I ran it, then confirmed it's running with the docker ps command:
russ@RussHP:~/ha$ cat start.sh #!/bin/bash mkdir -p ~/ha/config docker run -d \ --name homeassistant \ --privileged \ -e TZ=America/Detroit \ -v ~/ha/config:/config \ -v /run/dbus:/run/dbus:ro \ -p 8123:8123 \ --rm \ ghcr.io/home-assistant/home-assistant:stable russ@RussHP:~/ha$ ./start.sh a32957000a3f029fda67ff1cc2d96b22d2fe4f13125536023e94723a5df2dc6f russ@RussHP:~/ha$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 59c343cb87fa ghcr.io/home-assistant/home-assistant:stable "/init" 2 hours ago Up 2 hours 0.0.0.0:8123->8123/tcp homeassistant
After it was running, I was able to access it at http://localhost:8123