Docker Configuration Domestic Mirror Source Does Not Work

  docker, question

refer toDocker China Official Mirror Speeds UpIt is equipped with a domestic mirror image source, but it has not been effective all the time. Using docker pull, you still visit foreign warehouses.

> docker info
 ......
 Server Version: 17.04.0-ce
 Kernel Version: 4.4.0-97-generic
 Operating System: Ubuntu 16.04.3 LTS
 OSType: linux
 Architecture: x86_64
 Registry:  https://index.docker.io/v1/
 Experimental: false
 Insecure Registries:
 127.0.0.0/8
 Registry Mirrors:
 https://registry.docker-cn.com/
 
 > docker pull node
 
 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)

Not even direct pull:

> docker pull  registry.docker-cn.com/library/ubuntu:16.04
 
 Error response from daemon: Get  https://registry.docker-cn.com/v1/_ping: dial tcp: lookup  registry.docker-cn.com on 8.8.8.8:53: read udp 191.x.x.145:56600->8.8.8.8:53: i/o timeout

Why didn’t I use my mirror source? How to solve it?

This is a big hole. Aliyun has never maintained this mirror image, and it is openly posted on the official website.

This image has never been used. It is recommended to directly use the docker image on Aliyun’s cloud service.https://www.aliyun.com/produc …(Free, can also be used locally after opening), or at HKUST:https://mirrors.ustc.edu.cn/h …