在 /etc/docker/daemon.json 文件中添加以下参数(没有该文件则新建):

复制代码
{
  "registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}

服务重启:

复制代码
systemctl daemon-reload
systemctl restart docker

相关文章: