ssewhy
V2EX  ›  Docker

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

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