docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34167->[::1]:53: read: connection refused. code example

Example 1: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.1:56829->192.168.65.1:53: read: connection refused

Reset docker to factory defaults

Example 2: auth.docker.io on 192.168.65.1:53: no such host

chick your internet connection 
turn off the firewall

Tags:

Misc Example