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)
原因:系统的时间和docker hub时间不一致,需要做系统时间与网络时间同步
-
安装时间同步
sudo yum -y install ntp ntpdate
-
同步时间
sudo ntpdate cn.pool.ntp.org
-
查看本机时间
date
-
再次测试,docker拉取成功
docker pull hello-world