Docker uses Aliyun Mirror library to accelerate
In the domestic use of the official Docker registry download Docker mirror speed is very slow, domestic Aliyun Docker mirrored warehouse has accelerated services. This article will explain in detail the specific configuration method of the mirroring service. Docker uses Aliyun Mirror library to accelerate Register Aliyun Developer Account
https://cr.console.aliyun.com/
After landing to obtain the exclusive accelerator address, like this https://xxxxxx.mirror.aliyuncs.com configuration Docker accelerator Ubuntu
install 1.6.0 above version of Docker
can be downloaded via Aliyun's mirrored warehouse: Mirrors.aliyun.com/help/docker-engine
Curl-ssl Http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | SH-
Configure the Docker accelerator
You can add the mirror configuration to the startup parameters of Docker daemon using the following script.
sudo mkdir-p/etc/docker
sudo tee/etc/docker/daemon.json <<-' EOF '
{
' registry-mirrors ': [' https:/ /xxxxx.mirror.aliyuncs.com "]
}
EOF
sudo service docker restart
CentOS
Please install the version 1.6.0 Docker
You can download it via Aliyun's mirrored warehouse: Mirrors.aliyun.com/help/docker-engine
Curl-ssl Http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | SH-
Configure the Docker accelerator
You can add the mirror configuration to the startup parameters of Docker daemon using the following script.
System Requirements CentOS more than 7, Docker1.9 above
# explain cp-n don't overwrite files that already exist
sudo cp-n/lib/systemd/system/docker.service/etc/systemd/system/docker.service
sudo Sed-i "s| Execstart=/usr/bin/docker daemon| Execstart=/usr/bin/docker Daemon--registry-mirror=https://xxxxxx.mirror.aliyuncs.com|g "/etc/systemd/system/ Docker.service
sudo systemctl daemon-reload
sudo service docker restart