One . Why download the image Accelerator
By default , from dockerhub Upload and download docker The image is too slow , Image accelerators are usually configured
ustc: Image accelerator of CUHK
Alibaba cloud
Tencent cloud
Netease cloud
Default here Download Tencent cloud
Two . Specific steps
install docker
1. Install dependency packages
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
2. Set alicloud image source
sudo yum-config-manager –add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3. install Docker-CE
sudo yum install docker-ce
4. start-up Docker-CE
sudo systemctl enable docker
sudo systemctl start docker
5. Image acceleration configuration
mkdir /etc/docker/daemon.conf
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
Restart Docker service .
systemctl daemon-reload
systemctl restart docker