添加镜像源 ================== 修改Docker配置文件 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 修改 ``/etc/docker/daemon.json`` 以使用国内镜像源 .. code-block:: json { "data-root": "/var/lib/docker", "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn", "https://docker.m.daocloud.io", "https://hub-mirror.c.163.com", "https://mirror.baidubce.com", "https://registry.cn-hangzhou.aliyuncs.com", "https://docker.xuanyuan.me", "https://docker.nju.edu.cn" ] } 重新加载配置并重启Docker服务 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: shell sudo systemctl daemon-reload sudo systemctl restart docker