centos使用yum install docker -y安装完docker后,搜索和拉取镜像都很慢,要速度没速度,只有几十kb/s,怎么加速呢?
```bash
uname -a
Linux VM-8-14-centos 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```bash
cd /etc/docker
ls
vi daemon.json
插入这一段配置
{
"registry-mirrors" : [
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com",
"https://cr.console.aliyun.com/"
]
}
然后重启服务
systemctl restart docker
再试试docker pull java试试,看看速度是不是加快了,不会卡Downloading [===================>
就ok了
https://blog.csdn.net/zpg13579/article/details/126039507