1 . yum -y install docker-io
2. service docker start
3. docker pull centos:centos6
error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/70/70b5d81549ec19aa0a10f8660ba5e1ab9966008dbb1b6c5af3d0ecc8cff88eef/data?Expires=1523470376&Signature=Ig8fPa4KO7mhKn8bt68WLfl7IwDTTCBJvJniJYvmGxgWW35xbYuce-kkRXkTfFQXJZNWXPW6ICoQcqruekioyhrK0yptjJ6ou930RTG5lMcc-C37XXGhlTF-kk9H7M2Z7W5yuWHn~Y7aOeNTNhYB3qmYW58d-KTZvYMZFww9YvE_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: net/http: TLS handshake timeout
这个问题是国外的docker仓库太慢导致。步骤4为解决方案。
4.vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}