Docker login: Dial tcp: lookup index.docker.io read udp i/o timeout

There are at least two threads (including this one):

edit:
I can login to AWS ECR and pull images, but not the docker registry.