Aliyun's mirror services are well done, including the commonly used Debian (Ubuntu) and Redhat (CentOS) mirrors, the repo of all kinds of open-source software, and Docker's container mirrors, all copy one on a domestic server. Download speed is no longer limited by the big firewall you know. System and various types of open source software backup directly to see http://mirrors.aliyun.com/, the following alone Docker hub in Ali's Mirror accelerator settings, to CentOS7 for example.
Log on to the Aliyun developer platform http://dev.aliyun.com/and enter the accelerator page:
First you have to install Docker Engine, according to Docker official website installation can. Ali here the configuration step is to change the Docker daemon parameters, you can directly modify the Docker service configuration file/usr/lib/systemd/system/docker.service. If you use version 1.12, Docker daemon The execution file name is a bit different.
# Docker version
Client:
version: 1.12.5
API version: 1.24 go
version: go1.6.4
Git Commit: 7392c3b
Built: Fri Dec 02:23:59 2016 os/arch
: linux/amd64
Server:
Version: 1.12.5
API version: 1.24 go
version: go1.6.4
Git commit: 7392c3b
Built: Fri Dec 02:23:59 2016
os/arch: linux/amd64
Modified according to the Dockerd--registry-mirror parameters.
# Dockerd--help | grep registry
--disable-legacy-registry Disable contacting Legacy registries--insecure-registry=[
] Enable Insecure registry communication
--registry-mirror=[] preferred Docker Registry mirror
# vim/usr/lib/systemd/system/docker.service
[unit]
description=docker application Container Engine
documentation=https://docs.docker.com
after=network.target
[Service]
type=notify
# The The ' not ' to ' use ' systemd for cgroups because ' delegate issues still # exists and SYSTEMD currently does not
s Upport the Cgroup feature set required
# for containers run by Docker
Execstart=/usr/bin/dockerd -- Registry-mirror=https://jnxt8d8b.mirror.aliyuncs.com #更改这里
Restart the Docker service after modification:
# systemctl Daemon-reload
# systemctl Restart Docker
After the execution Docker pull xxx speed that is the lever.