KING 博主等级

一帆风顺 ⛵️⛵️⛵️

docker 报错 https://registry-1.docker.io/v2/ 访问超时

钟晓川
2024-09-23 / 0 点赞 / 460 阅读

Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

解决办法

# 配置加速地址
vim /etc/docker/daemon.json

添加以下内容

{
  "registry-mirrors": [
            "https://docker.211678.top",
            "https://docker.1panel.live",
            "https://hub.rat.dev",
            "https://docker.m.daocloud.io",
            "https://do.nark.eu.org",
            "https://dockerpull.com",
            "https://dockerproxy.cn",
            "https://docker.awsl9527.cn"
      ]
}

重启docker

systemctl restart docker
0