#I tried the same thing on ubuntu but am
1 messages ยท Page 1 of 1 (latest)
docker run
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
I'm figuring out how to do that right now. Am new to linux.
This is the command I used:
docker run -d --name homeassistant --privileged --restart=unless-stopped -e TZ=Asia/Kolkata -v /home/raj/homeassistant:/config -v /run/dbus:/run/dbus:ro --network=host ghcr.io/home-assistant/home-assistant:stable
@hollow dawn When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
Ok, so host networking is correct
Either the container isn't running, or Ubuntu is being Ubuntu again
Running HAOS as a VM on Windows may better suit you
But running it on virtualbox doesn't support wifi which is why I'm trying out this docker thing.
Any way to run it on wifi/
?
Sorry... I didn't know about this....
Servers don't run on WiFi, and that's a Windows problem
That's why I sent you that... which you ignored ๐
You need to sort out the Ubuntu firewall crap
Sadly I can't help with that as I won't run Ubuntu
ubuntu firewall is inactive as per sudo ufw status
I just know from many posts here that it does stupid stuff
Check the HA log file/container status
Make sure HA is running
If I install HAOS will it run on wifi or will the no ethernet be a problem?
The VM doesn't know or care about wifi
if you replace the OS with HAOS then that can use WiFi - if the hardware is supported
it's just a bad idea
What about the container logs?
Where do I find those?
docker logs NAME_OF_CONTAINER
Ok I think I'm going to give it a shot with vmware workstation and if wifi works with that, I'll just go with that otherwise a raspberry pi or something.
THanks
Ok so I ended up installing haos on my old laptop and I can reach the url via a browser on my other laptop.
But the problem now is that, nothing is showing up in the addon store.......
Would you happen to know anything about this?
ok thanks
Just out of curiosity, what do you use?
Container (Docker) all the way
On linux I'm guessing?
If so what distro?
Debian
Without knowing how much of a beginner to any form of Linux you are ... yes/no/maybe
As long as you have some Linux experience it's just another distro
haha ya I guess that makes sense
Turns out the mistake in my docker command was that I hadn't included this argument:
-p 8123:8123
But now it runs and keeps on exiting
Well, you don't need or want that
There's a reason the docs don't show that ๐
You have to use host networking (which only works on Linux)
And if it's exiting you've got logs... look at them ๐
Where do I put host networking in this command?
docker run -d --name homeassistant --privileged --restart=unless-stopped -e TZ=Asia/Kolkata -v /home/raj/homeassistant:/config -v /run/dbus:/run/dbus:ro --network=host ghcr.io/home-assistant/home-assistant:stable
I don't know what compose it I'll have to figure that out
What are the benefits of moving to compose?
You get a YAML file that describes the container definition
You can back that up, and making changes is easier than remembering what else you had on the command line 6 months ago
Do you use this url?
http://homeassistant.local:8123/
No, that only works for HAOS
So what url do use to access the container ha?
I tried http://<ip-address>:8123/ but that doesn't seem to be working
Well, that's what you use
- Check the container is running
- Check the container logs
- Check the HA log file in the config folder
These are the container logs:
2024-02-06 20:50:32 s6-rc: info: service s6rc-oneshot-runner: starting
2024-02-06 20:50:32 s6-rc: info: service s6rc-oneshot-runner successfully started
2024-02-06 20:50:32 s6-rc: info: service fix-attrs: starting
2024-02-06 20:50:32 s6-rc: info: service fix-attrs successfully started
2024-02-06 20:50:32 s6-rc: info: service legacy-cont-init: starting
2024-02-06 20:50:32 s6-rc: info: service legacy-cont-init successfully started
2024-02-06 20:50:32 s6-rc: info: service legacy-services: starting
2024-02-06 20:50:32 services-up: info: copying legacy longrun home-assistant (no readiness notification)
2024-02-06 20:50:32 s6-rc: info: service legacy-services successfully started
Where can I find the config folder?
-v /home/raj/homeassistant:/config
There are a few home-assistant.log files in my homeassistant folder but they are all empty
There is no config folder as such in the homeassistant folder
only a configuration.yaml
If you're having problems with your updates to your configuration:
- Check the troubleshooting steps
- Check your log file - remembering you may need to set logger to
infoordebug - Explain what the problem you're having is - sharing configuration, errors, and logs