docker pull超时报错net/http: TLS handshake timeout
- 原因:hub为国外镜像源,拉取易超时
- 更改为国内源
echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://f2d6cb40.m.daocloud.io\"" | sudo tee -a /etc/default/docker
- 重启docker
service docker restart
- 再次拉取无超时
echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://f2d6cb40.m.daocloud.io\"" | sudo tee -a /etc/default/docker
service docker restart