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)

# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-10-19 11:53:40 HKT; 3h 2min ago
     Docs: https://docs.docker.com
 Main PID: 7561 (dockerd)
    Tasks: 34
   Memory: 46.5M
      CPU: 51.172s
   CGroup: /system.slice/docker.service
           ├─7561 /usr/bin/dockerd -H fd://
           └─7570 docker-containerd --config /var/run/docker/containerd/containerd.toml

Oct 19 11:54:20 k8s-1 dockerd[7561]: time="2018-10-19T11:54:20.283794607+08:00" level=warning msg="Error getting v2 registry: Get https://registry.docker-cn.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Oct 19 11:54:20 k8s-1 dockerd[7561]: time="2018-10-19T11:54:20.283843725+08:00" level=info msg="Attempting next endpoint for pull after error: Get https://registry.docker-cn.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while aw
Oct 19 11:54:35 k8s-1 dockerd[7561]: time="2018-10-19T11:54:35.284031493+08:00" level=warning msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Oct 19 11:54:35 k8s-1 dockerd[7561]: time="2018-10-19T11:54:35.284064418+08:00" level=info msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awai
Oct 19 11:54:35 k8s-1 dockerd[7561]: time="2018-10-19T11:54:35.284398666+08:00" level=error msg="Handler for POST /v1.38/images/create returned error: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded wh
Oct 19 14:55:34 k8s-1 dockerd[7561]: time="2018-10-19T14:55:34.824222296+08:00" level=warning msg="Error getting v2 registry: Get https://registry.docker-cn.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Oct 19 14:55:34 k8s-1 dockerd[7561]: time="2018-10-19T14:55:34.824267435+08:00" level=info msg="Attempting next endpoint for pull after error: Get https://registry.docker-cn.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while aw
Oct 19 14:55:49 k8s-1 dockerd[7561]: time="2018-10-19T14:55:49.824493489+08:00" level=warning msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Oct 19 14:55:49 k8s-1 dockerd[7561]: time="2018-10-19T14:55:49.824532960+08:00" level=info msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awai
Oct 19 14:55:49 k8s-1 dockerd[7561]: time="2018-10-19T14:55:49.824577204+08:00" level=error msg="Handler for POST /v1.38/images/create returned error: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded wh

# cat /etc/docker/daemon.json
{
  "registry-mirrors": ["https://registry.docker-cn.com"],
  "dns": ["114.114.114.114"]
}

解决办法:
@todo
升级了 ubuntu18,重装了 docker 解决

发表评论

电子邮件地址不会被公开。 必填项已用*标注