Create or modify the /etc/docker/daemon.json file and modify it to the following form
vi /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
systemctl restart docker.service
Domestic accelerated addresses are:
-
Docker China official mirror
https://registry.docker-cn.com -
NetEase
http://hub-mirror.c.163.com -
USTC
https://docker.mirrors.ustc.edu.cn -
University of Science and Technology of China
https://docker.mirrors.ustc.edu.cn