Diagnostic step 1
Confirm root cause: inspect /etc/resolv.conf inside an affected container and compare with host's /etc/resolv.conf after resume to see the mismatch.
Generated Oct 16, 2026, 9:43:08 AM
Confirm root cause: inspect /etc/resolv.conf inside an affected container and compare with host's /etc/resolv.conf after resume to see the mismatch.
Short-term workarounds: start containers with a fixed DNS server (--dns 1.1.1.1) or configure docker daemon's /etc/docker/daemon.json with a default DNS to avoid dependence on host resolver changes.
Better integration: run a lightweight DNS forwarder (dnsmasq or systemd-resolved on a non-loopback address) on the host bound to a stable address accessible by containers (e.g., 172.17.0.1) and point containers' DNS to that; update Docker daemon configuration to use that address as default DNS.
If using VPNs, consider starting containers after VPN is active or use --network=host for containers that must use the host resolver (note the security implications).
If persistent Docker behavior is problematic and you need dynamic DNS, consider using a container orchestrator (Podman with systemd integration or Kubernetes) that supports updating DNS settings for pods, or create a systemd unit to reload Docker containers on resume. Escalate to Docker support if you observe daemon crashes or log messages indicating a bug.