Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acclerate docker pull in China/Asia

Tags:

docker

It is really slow when you are pulling images from official docker repository, uh, at China.

I am not asking for a working solution at local because I already found https://github.com/docker/docker-registry. What I am asking is if there is an alternative repository available and faster in China/Asia, just like many of them as Debian repository sources?

Thank you.

like image 621
Stefani Demar Avatar asked Mar 10 '15 06:03

Stefani Demar


1 Answers

There is an official mirror from docker in China.

https://docs.docker.com/registry/recipes/mirror/#use-case-the-china-registry-mirror

You can add "https://registry.docker-cn.com" to the registry-mirrors array in /etc/docker/daemon.json to pull from the China registry mirror by default.

{ "registry-mirrors": ["https://registry.docker-cn.com"] }

like image 145
Qiong Wu Avatar answered Oct 15 '22 20:10

Qiong Wu