Failed to pull image "nginx": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.64.1:53: read udp 192.168.64.5:51079->192.168.64.1:53: read: connection refused
Below yuo can find a sequence of commands that worked for me.
First go to minicube shell and try to re the registry-1.docker.io
$ minikube ssh
$ nslookup registry-1.docker.io
If it does not show the list of ips we've got the culprit.
$ su - root
# vi /etc/resolv.conf
# put a your favourite public DNS instead the one its defined
One extra thing you need to do is stop the
systemd-resolved
process
# systemctl stop systemd-resolved
Now there should fine, kuberetes will be able to download images.