赞
踩
报错如下:
解决:
yum install bind-utils
dig @114.114.114.114 registry-1.docker.io
- [root@localhost ~]# yum install bind-utils // 安装dig工具
- [root@localhost ~]# dig @114.114.114.114 registry-1.docker.io
把 ANSWER SECTION: 中的一组解析IP,放到主机/etc/hosts 里做映射
- [root@localhost ~]# dig @114.114.114.114 registry-1.docker.io
-
- ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> @114.114.114.114 registry-1.docker.io
- ; (1 server found)
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61251
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
-
- ;; OPT PSEUDOSECTION:
- ; EDNS: version: 0, flags:; udp: 512
- ;; QUESTION SECTION:
- ;registry-1.docker.io. IN A
-
- ;; ANSW
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。