cd /etc/docker/key.json

cd /etc/docker/daemon.json  设置

root@localhost:~# cat /etc/docker/daemon.json 
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}

docker设置国内镜像下载源_json

保存后退出;重启docker就可以

systemctl restart docker;

docker pull ***即可;