设置镜像地址
vim /etc/docker/daemon.json
没有则创建,写入
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
重启
systemctl daemon-reload
systemctl restart docker
检查生效
docker info