[root@localhost docker]# vi /etc/docker/daemon.json
[root@localhost docker]# cat daemon.json
{
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
[root@localhost docker]# systemctl daemon-reload
[root@localhost docker]# systemctl restart docker
“registry-mirrors”: [“https://9cpn8tt6.mirror.aliyuncs.com”]用的是阿里云