MacOS + Docker Very Slow Networking

I now have my system up on Docker on MacOS. It works but the one problem I’m running into is that I have a LOT more timeouts than I had previously on Hassio on the Raspberry. I’ve read everything I can find about this problem but it just appears that bridge networking is very slow.

I tried switching to host mode and when I do that I can’t access HA from localhost:8123. The web front end just isn’t available.

At this point I’m about to declare defeat, but surely someone has made this work?

How are you starting your container? Are you specifying -p 8123:8123, to expose the port?

Not on a mac, but this is my docker-compose.yml file:

version: '2.1'
services:
  homeassistant:
    image: homeassistant/home-assistant:0.75.3
    container_name: home-assistant
    restart: always
    network_mode: 'host'
    ports:
      - '8123:8123'
      - '8943:8943'
    volumes:
      - '/home/jamie/smith-home-assistant:/config'
    devices:
      - '/dev/ttyACM0'
    environment:
      - 'TZ=America/New_York'
    logging:
      options:
        max-size: 25m

Alternatively, try :8123 instead

This is a MacOS problem. I loaded Raspbian on my Pi, installed docker, and brought up the configuration with network_mode=host. Connection works fine and the network connection speeds are faster and more reliable than on my core-i5 iMac.

Host network mode isn’t available on docker for MacOS. I ended up running virtualbox and it works like a charm.