Image acceleration of Docker
In order to solve the problem of slow acquisition of dockers official images
The solution is as follows:
1. Log in to Aliyun website (https://cr.console.aliyun.com/)
2. Enter the user name and password (no registration can be made)
3. Click "Mirror Accelerator"-> "your exclusive Accelerator address" after logging in successfully.
Mkdir-p / etc/docker / / create a docker configuration folder
Cd / etc/docker
Vi daemon.json / / modify daemon configuration file
Add the following
{
"registry-mirrors": ["https://qtid6917.mirror.aliyuncs.com"]"
}
Systemctl daemon-reload / / Reload daemon file
Systemctl restart docker / / restart the container
Through the above methods, the problem of slow downloading official images in docker containers can be solved perfectly.