docker Error response from daemon:问题

错误:

[root@k8s-node-2 ~]# docker pull hello-world
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.mars.sourcemap.com, mars.sourcemap.com, not registry-1.docker.io
[root@k8s-node-2 ~]#

 解决:

  step0:

 

查看 本地是否安装 bind-utils
yum list installed |grep  bind-utils
安装
yum install bind-utils

 

   step1:

 

[root@localhost ~]# dig auth.docker.io

; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> auth.docker.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28936
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;auth.docker.io.			IN	A

;; ANSWER SECTION:
auth.docker.io.		43	IN	A	52.206.40.44
auth.docker.io.		43	IN	A	52.22.67.152
auth.docker.io.		43	IN	A	34.233.151.211
auth.docker.io.		43	IN	A	54.175.43.85
auth.docker.io.		43	IN	A	52.54.155.177
auth.docker.io.		43	IN	A	52.22.201.61
auth.docker.io.		43	IN	A	54.165.149.19
auth.docker.io.		43	IN	A	52.70.175.131

 

   step2:

 

echo '52.206.40.44 registry-1.docker.io auth.docker.io' >> /etc/hosts

 

  step3: 问题解决 

docker Error response from daemon:问题_第1张图片

 

 

 

 

转载于:https://www.cnblogs.com/nhz-M/p/10531302.html

你可能感兴趣的:(docker Error response from daemon:问题)