Quick Home Assistant setup with Docker
-
I wrote this
start.shbash 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:stableThis 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 homeassistantAfter it was running, I was able to access it at http://localhost:8123
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login