Docker 连不上镜像源

docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled

参考博文 :https://www.cnblogs.com/morgan363/p/12011404.html

故障描述:

[root@docker01 ~]# docker run centos
docker: 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).
See 'docker run --help'.

 

解决方案:

修改docker镜像源:

      docker默认的源为国外官方源,下载速度较慢,可改为国内,加速

 

方案一

修改或新增 /etc/docker/daemon.json

复制代码

[root@docker01 ~]# vi /etc/docker/dae

你可能感兴趣的:(Docker,docker)