I launched a jenkins-k8s-slave which should pull from a local registry. Why does docker ignore the local DNS settings (/etc/hosts and /etc/resolv.conf) managed by kubernetes?
When I do:
docker pull service.namespace.svc.cluster.local:5000/test:latest
I get: dial tcp: lookup service.namespace.svc.cluster.local: no such host
but this works:
curl https://service.namespace.svc.cluster.local:5000/v2/_catalog -k
{"repositories":[...]}