[root@localhost ~]# vi /etc/docker/daemon.json
{"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]}
[root@localhost ~]# systemctl daemon-reload[root@localhost ~]# systemctl restart docker