I’ve set up docker desktop on my mac with the tailscale extension. It works well with containers that use exposed ports, but those with host
networking all report that the network is unreachable. For example, with my docker-compose.yml:
version: "3.5"
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
ports:
- "8096:8096"
volumes:
- /Users/pgcudahy/Admin/jellyfin/config:/config
- /Users/pgcudahy/Admin/jellyfin/cache:/cache
- /Volumes/Media:/media
restart: "unless-stopped"
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
network_mode: "host"
restart: unless-stopped
volumes:
- /Users/pgcudahy/Admin/home_assistant/config:/config
- /Users/pgcudahy/Admin/home_assistant/database:/opt/home_assistant_database
The jellyfin container works well, but the home assistant container logs are full of “Network unreachable”. This isn’t limited to just that container, as two others that use host networking are also unable to reach the outside world. The mac this is running on is also running tailscale. Have I misconfigured this?