Hello,
from inside my Home Assistant Docker Container, I experience unreliable network connections to outside of the container. I can reproduce this on two different host machines with different Home Assistant Docker Image Versions.
Other containers on the same host do not show this issue.
Here’s what I do to reproduce the issue:
root@homeserver:~# docker exec -ti homeassistant /bin/bash
home-assistant:/config# nc -vz host.docker.internal 22
nc: host.docker.internal (172.17.0.1:22): Network unreachable
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
nc: host.docker.internal (172.17.0.1:22): Network unreachable
home-assistant:/config# nc -vz host.docker.internal 22
nc: host.docker.internal (172.17.0.1:22): Network unreachable
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
home-assistant:/config# nc -vz host.docker.internal 22
nc: host.docker.internal (172.17.0.1:22): Network unreachable
home-assistant:/config# nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
From a different container on the same host, I do not see this issue:
root@homeserver:~# docker exec -ti nodered /bin/bash
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
node-red:~$ nc -vz host.docker.internal 22
host.docker.internal (172.17.0.1:22) open
I also see various failed connections from different integrations in the docker logs for Home Assistant:
2026-02-18 11:21:31.550 ERROR (MainThread) [pyoverkiz.client] Giving up fetch_events(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.1.117:8443 ssl:False [Network unreachable])
2026-02-18 11:21:31.550 ERROR (MainThread) [homeassistant.components.overkiz] Error fetching device events data: Failed to connect.
2026-02-18 11:23:47.759 WARNING (MainThread) [custom_components.device_pulse.coordinator] [Devices XXXXXX] Device [Pixel 8 Pro XXXXXX][192.168.1.133] ping failed but under failure threshold (1/10 failed pings)
2026-02-18 11:24:07.511 WARNING (MainThread) [custom_components.device_pulse.coordinator] [Devices XXXXXX] Device [Pixel 8 Pro XXXXXX][192.168.1.133] ping failed but under failure threshold (1/10 failed pings)
2026-02-18 11:24:39.635 ERROR (MainThread) [homeassistant.components.fritz.coordinator] Error requesting fritz-192.168.1.1-coordinator data: HTTPConnectionPool(host='192.168.1.1', port=49000): Max retries exceeded with url: /upnp/control/hosts (Caused by NewConnectionError("HTTPConnection(host='192.168.1.1', port=49000): Failed to establish a new connection: [Errno 101] Network unreachable"))
2026-02-18 11:26:24.980 ERROR (MainThread) [homeassistant.components.playstation_network.coordinator] Timeout fetching playstation_network data
2026-02-18 11:37:21.246 ERROR (MainThread) [custom_components.daikin_onecta.daikin_api] REQUEST TYPE GET FAILED: Cannot connect to host api.onecta.daikineurope.com:443 ssl:default [Network unreachable]
Here’s the relevant sections of my docker compose file:
name: "container_mgmt"
networks:
smarthome:
name: "smarthome"
driver: "bridge"
labels:
com.docker.compose.network: "smarthome"
ipam:
config:
- subnet: "172.19.0.0/16"
gateway: "172.19.0.1"
services:
homeassistant:
container_name: "homeassistant"
image: "homeassistant/home-assistant:2026.2.2"
restart: "unless-stopped"
hostname: "home-assistant"
networks:
smarthome:
ipv4_address: "172.19.0.7"
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- "192.168.1.1"
ports:
- "8123:8123/tcp"
environment:
- "TZ=Europe/Berlin"
volumes:
- "/container/homeassistant/config:/config"
- "/container/homeassistant/snapshots:/snapshots:rw"
- "/etc/localtime:/etc/localtime:ro"
privileged: false
depends_on:
- "influxdb"
- "mosquitto"
logging:
options:
max-size: "5m"
max-file: "2"
nodered:
container_name: "nodered"
image: "nodered/node-red:4.1.5-22-minimal"
restart: "unless-stopped"
hostname: "node-red"
networks:
smarthome:
ipv4_address: "172.19.0.8"
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- "192.168.1.1"
ports:
- "1880:1880/tcp"
- "3456:3456/tcp"
environment:
- "TZ=Europe/Berlin"
volumes:
- "/container/nodered/data:/data"
- "/container/homeassistant/snapshots:/snapshots:ro"
- "/container/hostpipe:/hostpipe"
depends_on:
- "homeassistant"
- "mosquitto"
- "wakeonlan"
logging:
options:
max-size: "5m"
max-file: "2"
This is my setup:
- Host OS: Ubuntu 24.04.4 LTS
- Docker Version 28.2.2
- Tested Home Assistant Images from 2025.2.2 to 2026.2.2
As I already wrote, I can reproduce this on two differnt host maches. Unfortunately they both have the same OS / Docker installed.
Any help appreciated.