1、编辑 /etc/docker/daemon.json
vi /etc/docker/daemon.json
2、用下面的代码覆盖掉原来的内容
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
或
{
"registry-mirrors": ["https://75i1de1s.mirror.aliyuncs.com"]
}
3、加载文件,重启docker
systemctl daemon-reload
systemctl restart docker