docker pull nacos/nacos-server:v2.5.1-slim
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)

一般是国内云服务器厂商的服务器因为众所周知的原因。

这个时候直接使用镜像。

>> cat  /etc/docker/daemon.json
{
  "registry-mirrors" : [
    "https://docker.m.daocloud.io",
    "https://mirror.aliyuncs.com"      // 我的云是阿里
  ],
  "insecure-registries" : [
    "docker.mirrors.ustc.edu.cn"
  ],
  "debug": true,
  "experimental": false
}

镜像的内容。直接

sudo vim /etc/docker/daemon.json

然后重启 docker 即可,

重启 docker 

sudo systemctl restart docker

》〉 docker pull nacos/nacos-server:v2.5.1-slim
v2.5.1-slim: Pulling from nacos/nacos-server
01085d60b3a6: Pull complete 
31b08b2b673a: Pull complete 
11aae06f9ccc: Pull complete 
b7231c8529b5: Pull complete 
6de59a4705d9: Pull complete 

我的云服务商: 阿里云。

Logo

智能硬件社区聚焦AI智能硬件技术生态,汇聚嵌入式AI、物联网硬件开发者,打造交流分享平台,同步全国赛事资讯、开展 OPC 核心人才招募,助力技术落地与开发者成长。

更多推荐