我正试图拉出一个码头图像,它会遇到dns问题 . 能够ping互联网 . 我看过类似的问题,但似乎没有一个解决方案适合我!

[xr-vm_node0_RP0_CPU0:~]$docker pull hello-world
Using default tag: latest
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: dial tcp: lookup index.docker.io: Temporary failure in name resolution

的resolv.conf

[xr-vm_node0_RP0_CPU0:~]$cat /etc/resolv.conf
nameserver 8.8.8.8

ping谷歌

[xr-vm_node0_RP0_CPU0:~]$ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=9.06 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=114 time=8.47 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=114 time=7.36 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=114 time=24.4 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3007ms
rtt min/avg/max/mdev = 7.369/12.332/24.415/7.003 ms