鍍金池/ 問答/Linux  網(wǎng)絡安全/ docker 配置國內(nèi)鏡像源不起作用

docker 配置國內(nèi)鏡像源不起作用

參照Docker 中國官方鏡像加速配了國內(nèi)鏡像源,但是一直不起作用,使用docker pull 還是訪問到國外倉庫

> 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)

直接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

為什么沒有用上我配的鏡像源呢?該怎么解決?

回答
編輯回答
放開她

這個很坑,阿里云根本沒維護過這個鏡像,而且還堂而皇之的掛在官方網(wǎng)站上。

這個鏡像從來就無法使用,建議直接使用阿里云的云服務上的docker鏡像https://www.aliyun.com/produc... (免費的,開通之后本地也可以使用),或者中科大的: https://mirrors.ustc.edu.cn/h...

2017年10月16日 00:45