{
"registry-mirrors": ["https://dhq9bx4f.mirror.aliyuncs.com"]
}
[root@106 ~]# docker pull centos
[root@106 ~]# vim /etc/docker/daemon.json
{
"registry-mirrors": ["这里放自己的加速链接"]
}
保存退出
[root@106 ~]# systemctl restart docker
[root@106 ~]#
[root@106 ~]# docker pull centos