Skip to content

Instantly share code, notes, and snippets.

@tanbro
Last active June 20, 2023 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanbro/3439d6a4f494a1b5ce4febd12cb9e938 to your computer and use it in GitHub Desktop.
Save tanbro/3439d6a4f494a1b5ce4febd12cb9e938 to your computer and use it in GitHub Desktop.

国内 docker hub 镜像记录

概述

docker 的 daemon.json 以及 registry 配置参考:

值得注意的是,Windows desktop 版现在不会理会 %programdata%\docker\config\daemon.json,我们需要在桌面程序的图形界面中,书写配置 JSON。

例如:

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "features": {
    "buildkit": true
  },
  "registry-mirrors": [
    "https://m.daocloud.io"
  ]
}

"registry-mirrors"` 数组属性就是!

Docker Hub 镜像加速器列表

镜像加速器 镜像加速器地址 专属加速器 其它加速
Docker 中国官方镜像 https://registry.docker-cn.com Docker Hub已关闭
DaoCloud 镜像站 https://docker.m.daocloud.io Docker Hub、GCR、K8S、GHCR、Quay、NVCR 等。目前返回 unkunwn manifest
Azure 中国镜像 https://dockerhub.azk8s.cn 仅供内部访问 Docker Hub、GCR、Quay
科大镜像站 https://docker.mirrors.ustc.edu.cn 仅供内部访问 Docker Hub、GCRQuay
阿里云 https://<your_code>.mirror.aliyuncs.com 需登录,系统分配 Docker Hub
七牛云 https://reg-mirror.qiniu.com Docker Hub、GCR、Quay
网易云 https://hub-mirror.c.163.com Docker Hub
腾讯云 https://mirror.ccs.tencentyun.com 仅供内部访问 Docker Hub
Docker 镜像代理 https://dockerproxy.com Docker Hub、GCR、K8S、GHCR
百度云 https://mirror.baidubce.com Docker Hub. 目前返回 unkunwn name
南京大学镜像站 https://docker.nju.edu.cn Docker Hub、GCR、GHCR、Quay、NVCR 等
上海交大镜像站 https://docker.mirrors.sjtug.sjtu.edu.cn Docker Hub、GCR 等

查看 mirror 的 WebAPI 返回

eg:

https://{{ mirror_url }}/v2/{{ image_name }}/tags/list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment