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)

docker pull nginx

遇到这个问题

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)

 

 修改数据源

再 /etc/docker 下面看看有没有 daemon.json

没有则创建一个,并如下添加一个数据源

{
"registry-mirrors":["https://pee6w651.mirror.aliyuncs.com"]
}

 保存重启 docker

systemctl restart docker.service

   完成  

posted @ 2019-12-14 17:57  抽象Java  阅读(565)  评论(0编辑  收藏  举报