Docker 国内镜像加速 | 2026年3月26日可用

配置 Docker 国内镜像加速

可用curl命令测试当前网址是否失效;

如:
curl -I https://docker.1ms.run

如果返回 Connection timed outCould not resolve host,说明该镜像源不通。

bash 复制代码
sudo tee /etc/docker/daemon.json <<'EOF'
{
  "registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://docker.1ms.run",
    "https://lispy.org",
    "https://docker-0.unsee.tech",
    "https://docker.xuanyuan.me"
  ]
}
EOF

确认配置

bash 复制代码
cat /etc/docker/daemon.json
  • 有以下输出:
bash 复制代码
{
  "registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://docker.1ms.run",
    "https://lispy.org",
    "https://docker-0.unsee.tech",
    "https://docker.xuanyuan.me"
  ]
}

重启 Docker

bash 复制代码
sudo systemctl daemon-reload && sudo systemctl restart docker

验证配置

bash 复制代码
docker info | grep -A 5 "Registry Mirrors"
相关推荐
石头猫灯1 天前
DNS 服务器配置实验
运维·服务器
认真的薛薛1 天前
Docker网络模式
linux·运维·数据库·面试·github
民乐团扒谱机1 天前
【读论文】Frequency Comb Based Optical Time Transfer基于光频梳的光时间传递
运维·服务器
UP_Continue1 天前
Linux--日志的模拟实现
linux·运维·服务器
YMWM_1 天前
docker在jetson thor的应用
运维·docker·容器·jetson thor
lwx9148521 天前
Linux-sftp命令详解
linux·运维·服务器
舒一笑1 天前
客户现场没有外网,Docker 服务怎么部署?
运维·后端·自动化运维
奥升新能源平台1 天前
奥升充电最小化高可用机房部署方案
运维·安全·开源·能源·springcloud
珠海西格1 天前
四可装置如何监测组件衰减与逆变器效率?
大数据·运维·服务器·分布式·能源
摇滚侠1 天前
Windows 版 Nginx 关闭
运维·windows·nginx