I’m trying to install hass.io in a docker container, but I get no network or ports. And I have no idea what I’m doing wrong. I’m using docker-compose with these settings:
my view is exactly the same.
I think potentially you have no ports showing because you’re not mapping ports, but most importantly I think it’s because network_mode: host is defined.
Again my portainer view is 100% the same so don’t think there’s an issue with Docker.
Are you having issues other than this?
Not to rehash a solved thread but from your last post I think you may have missed the point.
There were no ports listed because it didn’t need to list any ports because all of the ports on the host were exposed by setting network mode to host. That means that any port that is accessed on the host can also be accessed by the container. So if you can reach 8123 on the host you can also reach the container thru 8123. There is no need to put in the “ports:” section if you have “network_mode: host” set. right now you only have one port on the host exposed to HA (8123).
I’m having this problem right now. It seems that port 8123 will not resolve to my Home Assistant (Hassio) install on Docker. It works for about a day and then I can’t reach the Hassio frontend anymore. I can see that everything is running and there are no errors in the logs. Do you know why 8123 would suddenly stop resolving to Hassio?
Well I don’t know that it’s so much a hassio issue as an issue with docker and the host ubuntu machine not allowing port 8123. I don’t have a firewall enabled on the host so I’m not sure why the port would be closed.
I’m not sure why it would be a docker/host/firewall issue either. I would think that the port would either consistently work or not based on any configuration that you have in the container. Since it works intermittently I would tend toward thinking it’s a hardware or network issue.
I’ve done config checks right before restarting and losing access, and all checks out fine. I had a uptime of 7 days with no changes and restarted and lost access. makes no sense to me.
Do you have a Chromecast? That turned out to be the root of my issues. For some reason (I still don’t know why) everytime I would configure the Chromecast it would cause port 8123 to become inaccessible. Once I removed the Chromecast, everything has been fine since. If you are running hassio and you let hassio configure it for you, you can go to /config/.storage/core.config_entries (something like that) and remove the portion that looks like this: https://imgur.com/a/jSt3a6I. Hope this helps!
hmm I do have google homes that use the cast component, but I’ve never had an issue before. This happened to me as well when I moved from an older atom based ubuntu install to a new i3 nuc, using a snapshot. the old box worked fine, took a full hassio snapshot, on the new box set up hassio, and then restored the snapshot. Could see everything running via the log, but no access via 8123. I had a zwave sensor that was - mis-behaving yesterday and that was why i triggered the restart that ended up with this issue. After which I removed z-wave from the core.config_entries to be sure it wasn’t the issue, and still was no way to recover.