Mirror source
For reasons known, we directly connect the warehouse located on foreign servers to get depend on the package speed is very slow, this time we usually adopt domestic warehouse mirroring some domestic organizations or developer contributions.
1, first Docker also provides domestic mirror source: https://registry.docker-cn.com
2, then the country there are many organizations that provide a mirror image of the source, we are accustomed to using the accelerator Ali cloud offers,
details, to take a look at the following links: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
How to modify the mirror source based boot2docker built Docker
1, open Git Bash (or Docker QuickStart Terminal), using the following command to enter the VM Bash
java docker-machine ssh default
2, open / var / lib / boot2docker / profile
sudo vi /var/lib/boot2docker/profile
3, in --label provider = virtualbox next line source configured to add a mirror
--registry-mirror=https://ns2wtlx2.mirror.aliyuncs.com
4, restart the VM
Exit to exit the VM bash, the last execution in the Git Bash
docker-machine restart default
Modify the Linux system
This is in relation to the above relatively simple, after all Docker itself is based on the Linux core competencies, so the operation in Linux Docker is wanted simple.
Can refer to this article offers three solutions, but I only had the first practice, we can all try: Modify Docker mirroring the three programs