如获取httpd镜像时:
docker pull httpd
Using default tag: latest
Trying to pull repository docker.io/library/httpd ...
latest: Pulling from docker.io/library/httpd
f2b6b4884fc8: Pulling fs layer
b58fe2a5c9f1: Pulling fs layer
e797fea70c45: Pulling fs layer
6c7b4723e810: Waiting
02074013c987: Waiting
a4a11b801d86: Waiting
70d17a98bee0: Waiting
error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/e2/e2a1033f4f86d2f563cbefc401ff1539a47d474811b0f9d0cd958cdcdca700bc/data?Expires=1521731679&Signature=WofgK3VwlFL4c5pQilmIFw3A0yf~TT1cxSEmB5KvYBYzLi6YOoq-ZcaKTZ~6VcnCSprWdY1YJRL6IUlP2zr943j4NQbCX~Lwpxn-m6We9wrTxxEA6DhmWGTXF-6OZc6yJv7XyWprz~Mr8RIgxl~04A52QMRrBOvjHQy27UBwwiA_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: net/http: TLS handshake timeout
解决方案:
出现这个问题原因为国内网络问题,无法连接到 docker hub。 可以使用国内阿里镜像,docker指定该源即可 :
--registry-mirror=https://31gi6tw1.mirror.aliyuncs.com
centos7处理办法,其他系统版本处理方法类似,添加后重启docker :
service docker restart
网友评论