zoukankan      html  css  js  c++  java
  • 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: 问题解决 

     

     

    nhz94259@163.com
  • 相关阅读:
    行转列函数listagg() WITHIN GROUP ()
    位图索引
    windows 杀掉进程
    vue 实践(过滤器)
    vue 总结
    vue v-show v-if 的使用
    vue v-for 绑定数据
    vue v-model实现数据的双向绑定
    vue .stop .self .capture .prevent 阻止冒泡
    vue v-on v-text 的运用
  • 原文地址:https://www.cnblogs.com/nhz-M/p/10531302.html
Copyright © 2011-2022 走看看