I am trying to install HomeAssistant on TrueNAS via an Ubuntu VM I have installed on there, and no matter what I do it does not expose port 8123 to the application on container creation.
To start, if there’s an easier way to do this on TrueNAS core I’m all ears.
I understand that by default, the host network in docker does not expose ports to the application, so I’m wondering if I need to create a user defined network that does?
If you replace the “-d” with “-it” it will run in interactive mode and you can see what is going on. To get out of interactive mode, press ctrl-P then ctrl-Q.
you need to provide a local folder to map to the folder within the docker container, i.e. ‘config’
You would normally (my way at least) create a base-folder called ‘docker’ somewhere on you machine
say /home/[yourname]/docker
Within that you create a folder homeassistant
and then you use this
-v /home/[yourname]/docker/homeassistant:/config
of course it does not have to be in home but this is what I like…
EDIT the docker folder you will then use later for other containers as well
EDIT2: make sure you have space on your disk where ‘docker’ resides as this will grown when you add more and more… a full disk will crash the lot.
Just as a general list of things I’ve tried so far:
The docker install, it hurt my brain and when I realized I was going to have to do manual configuration, I said “Look there’s some shiny disk images. Let’s try loading those as VMs.”
Funny joke, I said a half hour later as every attempt to load the x86 image results in the UEFI not being able to find the .efi file. This is what i’ve been troubleshooting for an hour.
I think I’m going to toss in the towel on this for the night, and I’ll look at this with fresh eyes tomorrow.
The VM one with HAOS uses add-ons which in fact are containers too but there you have ‘supervisor’ to deal with that. It will work very fine for almost all installs. I chose docker as I want to run non-HA stuff on the same machine.
good luck
i think this is an ubuntu firewalll rule.
not easy to find.i remember if you use ufw it close port and even if you make rules.
i remember to have to check iptable under ubuntu with ufw