docker国内镜像源

docker配置镜像Docker pull时报错:https://registry-1.docker.io/v2/

按下面修改, 亲测有效

1 替换/etc/docker/daemon.json的内容为下面的配置:

json 复制代码
{
  "registry-mirrors": [
    "https://docker.registry.cyou",
    "https://docker-cf.registry.cyou",
    "https://dockercf.jsdelivr.fyi",
    "https://docker.jsdelivr.fyi",
    "https://dockertest.jsdelivr.fyi",
    "https://mirror.aliyuncs.com",
    "https://dockerproxy.com",
    "https://mirror.baidubce.com",
    "https://docker.m.daocloud.io",
    "https://docker.nju.edu.cn",
    "https://docker.mirrors.sjtug.sjtu.edu.cn",
    "https://docker.mirrors.ustc.edu.cn",
    "https://mirror.iscas.ac.cn",
    "https://docker.rainbond.cc",
    "https://do.nark.eu.org",
    "https://dc.j8.work",
    "https://dockerproxy.com",
    "https://gst6rzl9.mirror.aliyuncs.com",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "http://mirrors.ustc.edu.cn/",
    "https://mirrors.tuna.tsinghua.edu.cn/",
    "http://mirrors.sohu.com/"
  ],
  "insecure-registries": [
    "registry.docker-cn.com",
    "docker.mirrors.ustc.edu.cn"
  ],
  "debug": true,
  "experimental": false
}

2 重新加载配置, 重启docker

shell 复制代码
systemctl daemon-reload
systemctl restart docker
docker info
相关推荐
电商API_180079052471 小时前
京东商品详情API技术文章
大数据·运维·人工智能·网络爬虫
三言老师2 小时前
秘诀-如何远程SSN访问家里的八台电脑(frp 实操方案)
linux·运维·ssh
BTU_YC4 小时前
Docker Compose 部署 DozerDB 完整教程
运维·docker·容器
流烟默4 小时前
Kubernetes 调度器完全指南:从原理到生产实战
云原生·容器·kubernetes
RisunJan6 小时前
Linux命令-scriptreplay(终端会话回放)
linux·运维·chrome
spencer_tseng6 小时前
[kylin & linux] install docker
linux·docker·kylin
x²+(y-√³x²)²=17 小时前
Linux打包文件到Windows,文件/文件类型丢失
linux·运维·windows
世人万千丶7 小时前
去重插入与超限淘汰:ArkTS 实现鸿蒙搜索历史的 LIMIT 艺术
运维·服务器·学习·华为·harmonyos·鸿蒙
未来之窗软件服务8 小时前
企业自动化运营-电子合同预览-东方仙盟
运维·自动化·仙盟创梦ide·东方仙盟
流烟默8 小时前
Kubernetes Service 完全指南:从原理到生产实战
云原生·容器·kubernetes