By configuring Ali Cloud image acceleration, the speed can be further improved.

1. Log in to Aliyun

  1. Log in to Aliyun and find the container image service.

  1. Click on the Container Image service, image tool under the image accelerator, to see your own accelerator address.

2. Configure mirror acceleration

When you see the accelerator address, you can scroll down to see the operation document, which has different systems. Mine is centos7, and the following configuration, a total of four commands.

  1. Create a new docker directory.
sudo mkdir -p /etc/docker
Copy the code
  1. Configure the Aliyun address
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://odmcy51z.mirror.aliyuncs.com"]
}
EOF
Copy the code

The configured address is returned.

  1. Restart the service
sudo systemctl daemon-reload
Copy the code
  1. Restart the docker
sudo systemctl restart docker
Copy the code