1、创建或修改daemon.json文件
vi /etc/docker/daemon.json
{
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.baidubce.com",
"https://reg-mirror.qiniu.com/"
]
}
2、加载文件并重启docker
systemctl daemon-reload
systemctl restart docker
3、查看是否修改成功:
docker info