zoukankan      html  css  js  c++  java
  • docker 安装与使用的相关问题

    Error response from daemon: i/o timeout

    $ sudo docker search centos
    Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25: dial tcp 3.225.34.151:443: i/o timeout
    
    $ sudo vim /etc/docker/daemon.json
    {
        "registry-mirrors": ["http://hub-mirror.c.163.com"]
    }
    or
    {
      "registry-mirrors": ["https://registry.docker-cn.com"]
    }
    
    $ sudo vim /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.1.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    
    $ sudo systemctl daemon-reload
    $ sudo systemctl restart docker
    
    $ sudo docker search centos
    NAME                               DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
    centos                             The official build of CentOS.                   5626                [OK]
    ansible/centos7-ansible            Ansible on Centos7                              125                                     [OK]
    jdeathe/centos-ssh                 OpenSSH / Supervisor / EPEL/IUS/SCL Repos - …   114                                     [OK]
    consol/centos-xfce-vnc             Centos container with "headless" VNC session…   99                                      [OK]
    
  • 相关阅读:
    这是我
    团队项目:Recycle
    四则运算生成器
    vim记录
    常用逻辑门及其符号
    shell记录
    用Gvim建立IDE编程环境 (Windows篇)
    vim基本操作
    vim后台运行程序
    快速提高 Vi/Vim 使用效率的原则与途径
  • 原文地址:https://www.cnblogs.com/qccz123456/p/11732368.html
Copyright © 2011-2022 走看看