ML-TANGO / TANGO

public repo for TANGO (Target Aware No-code neural network Generation and Operation framework)
Other
68 stars 20 forks source link

Dial TCP lookup registry-1.docker.io temporary failure in name resolution Error #40

Closed ML-TANGO closed 1 year ago

ML-TANGO commented 1 year ago

If you are experiencing following error while executing docker-compose up -d --build;

Dial TCP lookup registry-1.docker.io temporary failure in name resolution Error

The problem was solved by adding DNS entries 8.8.8.8 and 8.8.4.4. (DNS service IP addresses from Google) to the resolv.conf file (Ubuntu 16.04 or below):

$ cat /etc/resolv.conf
nameserver 8.8.4.4
nameserver 8.8.8.8

or if your system (Ubuntu 18.04 or above) uses netplan instead of resolv.conf, edit /etc/netplan/01-network-manager-all.yaml as follows:

# After editing this file, execute `sudo netplan apply`
# to reflect the chnage of nameservers
network:
  version: 2
  renderer: networkd
  ethernets:
    enp6s0:
      addresses: [xxx.xxx.xxx.xxx/24]
      dhcp4: no
      dhcp6: no
      gateway4: xxx.xxx.xxx.yyy
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

To make effect of changing /etc/netplan/01-network-manager-all.yaml, you shoud run following command;

$ sudo netplan apply

Some of most popular DNS resolvers:

  • Google (8.8.8.8, 8.8.4.4)
  • Cloudflare (1.1.1.1 and 1.0.0.1)
  • OpenDNS (208.67.222.222, 208.67.220.220)
  • Level3 (209.244.0.3, 209.244.0.4)

DNS resolver in ETRI:

  • 129.254.16.61, and 129.254.16.62

Also, you can identify your system's DNS sever info as follows:

$ systemd-resolve --status
...
...
  Current DNS Server: 1.0.0.1
         DNS Servers: 129.254.16.61
                      129.254.16.62
                      1.1.1.1
                      1.0.0.1

References:

ML-TANGO commented 1 year ago

DNS resolvers in ETRI does not resolve outside DNS name of ETRI, from time to time. Hence, collaborators in ETRI are recommend to add Google DNS resolver in front of ETRI DNS resolver as follows:

# After editing this file, execute `sudo netplan apply`
# to reflect the chnage of nameservers
network:
  version: 2
  renderer: networkd
  ethernets:
    enp6s0:
      addresses: [xxx.xxx.xxx.xxx/24]
      dhcp4: no
      dhcp6: no
      gateway4: xxx.xxx.xxx.yyy
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4, 129.254.16.61, 129.254.16.62]