4 ms·
I was keen to run it on Docker on my M1 Mac Mini ~6 months ago but, apparently on account of some limitation concerning the way Docker handles networking on M1
by darkteflon 5y ago
I was keen to run it on Docker on my M1 Mac Mini ~6 months ago but, apparently on account of some limitation concerning the way Docker handles networking on M1 Macs - at least at the time - was unable to.
Has anyone managed to get this working? I run a bunch of homelab services as Docker containers on the always-on, power sipping M1 so getting this set up too would mean I could avoid having to use a separate, dedicated Pi.
- ArchOversight 5y agoOnce the Linux on M1 becomes available you could run it that way. Right now the issue is that Home Assistant relies on being on the same network (bridged into the container) as the rest of your devices so it can see the broadcasted messages from IoT devices.
- vetinari 5y agoI'm running HA inside docker with two networks: one macvlan-based, which is connected to iot-VLAN host interface. Here, HA can talk to devices (this adapter is set in Settings | General | Network Adapters for the broadcast). The other is bridge (docker net driver one, not linux one) - i.e. it is in it's private, host-only subnet and a reverse proxy running on a host publishes the web app for the users on the main LAN.
- ArchOversight 5y agoSure, and that works great when you are using Linux to run Docker as you have full control over the networking. For docker on macOS as the OP is using, you only get a single network, and it is an emulated one using vpnkit into the VM. You can't attach a network adapter directly to the VM, which means the docker containers running inside the VM can't see the IoT devices.