Using host networking causes zeroconf and default_config errors

If I install home assistant using this command everything works just fine

docker pull homeassistant/home-assistant:stable
docker run -d \
 --restart=always \
 --name=homeassistant \
 -h homeassistant \
 -e PUID=1001 \
 -e PGID=1001 \
 -e TZ=Europe/Nicosia \
 --net=network \
 -p 8123:8123 \
 -v homeassistant:/config \
 homeassistant/home-assistant:stable

If I install home assistant using this command

docker pull homeassistant/home-assistant:stable
docker run -d \
 --restart=always \
 --name=homeassistant \
 -h homeassistant \
 -e PUID=1001 \
 -e PGID=1001 \
 -e TZ=Europe/Nicosia \
 --net=host \
 -v homeassistant:/config \
 homeassistant/home-assistant:stable

I get this error

and these are the logs

As you can see the only thing that changed is the networking, that is now using “host” instead of “8123” port.

These are clean installations.

What could be the issue here?

I also tried this, because I have a plex container running also but it didn’t fix the issue. I unmapped port 1900 from plex but no luck.

it seems I also had to unmap port 5353 on plex. Now home assistant is ok.