docker container can't resolve internal hostnames
curl: (6) Could not resolve host: git.internal from inside a container, but the same curl works on the host. Docker 24.0.7 on Ubuntu 22.04, systemd-resolved running with 127.0.0.53 in /etc/resolv.conf. Containers get nameserver 127.0.0.11 as expected. We added a dns entry in /etc/docker/daemon.json pointing at 8.8.8.8 a while back for some other issue. Could that be why internal names fail?
4 replies