vim /etc/docker/daemon.json -p
写入
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
systemctl daemon-reload
systemctl restart docker
上述地址为docker官方提供,也可加上阿里云提供的镜像加速地址
vim /etc/docker/daemon.json -p
写入
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
systemctl daemon-reload
systemctl restart docker
上述地址为docker官方提供,也可加上阿里云提供的镜像加速地址