Fix EAI_AGAIN: work around Docker's internal-network DNS bug with a static IP

- egress-proxy gets a fixed IP (172.28.5.10) on a new 172.28.5.0/24
  subnet for the 'egress' network.
- sde-meeting-toolkit gets a static extra_hosts entry for
  'egress-proxy' instead of relying on Docker's embedded DNS, which
  breaks for internal-network names on a container that's also on a
  normal network (confirmed via a real smoke test run - EAI_AGAIN).
- Update CHANGELOG with the root cause and the subnet-collision caveat.
This commit is contained in:
2026-09-29 18:52:28 -07:00
parent dc1f6b81e9
commit 6eb4b59d97
2 changed files with 22 additions and 2 deletions

View File

@@ -45,6 +45,14 @@ services:
networks:
- proxy
- egress
# A container attached to both a normal network ("proxy") and an
# internal: true network ("egress") can hit a real Docker bug where
# embedded DNS stops resolving names on the internal side (EAI_AGAIN),
# confirmed while testing this. Sidestep it with a static hosts entry
# instead of relying on DNS for this one name - egress-proxy's fixed
# IP is set below via ipv4_address.
extra_hosts:
- "egress-proxy:172.28.5.10"
depends_on:
- egress-proxy
# Hardening for a container that's reachable from the public internet
@@ -61,8 +69,12 @@ services:
container_name: sde-meeting-toolkit-egress-proxy
restart: unless-stopped
networks:
- egress
- default
egress:
# Fixed IP so sde-meeting-toolkit can reach this by static hosts
# entry (extra_hosts above) instead of DNS, working around the
# internal-network DNS bug. Must match that entry if ever changed.
ipv4_address: 172.28.5.10
default: {}
cap_drop:
- ALL
security_opt:
@@ -80,3 +92,6 @@ networks:
# out except through egress-proxy, which also sits on "default" and IS
# meant to have one.
internal: true
ipam:
config:
- subnet: 172.28.5.0/24