ssewhy
V2EX  ›  Docker

CentOS7 安装 docker 配置好镜像加速之后为什么拉取地址指向没有变化?

  •  
  •   ssewhy · Oct 18, 2020 · 4260 views
    This topic created in 2031 days ago, the information mentioned may be changed or developed.

    已经重启服务 已经重新加载 json 文件 已经重新开机 已经更换其他镜像地址 地址就是不变!

    Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

    13 replies    2020-12-09 20:54:04 +08:00
    ssewhy
        1
    ssewhy  
    OP
       Oct 18, 2020
    又遇到过的吗
    ssewhy
        2
    ssewhy  
    OP
       Oct 18, 2020
    求解答
    also24
        3
    also24  
       Oct 18, 2020
    先 docker info 看一下里面有没有
    ssewhy
        4
    ssewhy  
    OP
       Oct 18, 2020
    @also24 看了,是有的,就是地址怎么变不了,服务都重启了,重新加载 json 配置文件
    ssewhy
        5
    ssewhy  
    OP
       Oct 18, 2020
    需要怎么做
    Yunen
        6
    Yunen  
       Oct 18, 2020
    /etc/docker/daemon.json
    改为
    /etc/docker/daemon.conf
    然后重启 docker
    ssewhy
        7
    ssewhy  
    OP
       Oct 18, 2020
    @Yunen 试了,还是不行。汗。。。。。
    ssewhy
        8
    ssewhy  
    OP
       Oct 18, 2020
    rror response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    herozzm
        9
    herozzm  
       Oct 18, 2020 via Android
    有些加速库里面没有 会转到官方库拉取
    ssewhy
        10
    ssewhy  
    OP
       Oct 18, 2020
    @herozzm 不是吧,最常见的不能没有吧,我感觉我是配置没生效
    ssewhy
        11
    ssewhy  
    OP
       Oct 19, 2020
    {
    "registry-mirrors": ["https://og7vpkky.mirror.aliyuncs.com"]
    }
    qq296015668
        12
    qq296015668  
       Dec 6, 2020
    https://registry-1.docker.io/v2/ 这是接口地址,会通过这个接口查询你要下载的镜像信息,如果存在才会到下载步骤。下载会使用 mirrors 镜像,但是查询不会。
    jthink
        13
    jthink  
       Dec 9, 2020
    我也遇到同样的问题,楼主解决了吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1005 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 19:42 · PVG 03:42 · LAX 12:42 · JFK 15:42
    ♥ Do have faith in what you're doing.