Docker set up a mirror to accelerate

First, why should set up a mirror to accelerate

? As the docker's mirror source address and then abroad, such as the official address: https: //hub.docker.com/search q = hyperledger & type = image; therefore download mirror technology will be very slow, here it is recommended to use domestic mirror source address.

Second, how to configure mirroring accelerate

It is recommended to install a higher version of the docker (1.12+)

Edit docker profile /etc/docker/daemon.json

vim /etc/docker/daemon.json

{
"registry-mirrors": ["https://8w1wqmsz.mirror.aliyuncs.com"]
}

 

Validate the configuration:

systemctl daemon-reload

Restart Docker:
systemctl restart Docker

Third, access to Ali cloud docker mirror accelerated address

1, open this address: http: //cr.console.aliyun.com/cn-hangzhou/instances/mirrors
2, after use Alipay quick login aliyun automatically jump to the following page

Guess you like

Origin www.cnblogs.com/jockming/p/12050379.html