部署自己的Docker Hub镜像站,附Docker Hub镜像地址

前言

2024-06-06,未知原因 docker.com 国内镜像全都被要求下架服务。

为了另求出路,采用 cloudflare wokers pages 搭建镜像服务。

特点:免费、简单

部署

本次使用 cmliu 提供的代码。

地址:https://github.com/muyiacc/CF-Workers-docker.io

  1. 克隆仓库,登陆 cloudflare,选择 Wokers & Pages
  2. create an application
  3. 选择 pages - connect to git - github - github account - select a repository
  4. begin setup
  5. custom domains

第 5 步自定义的域名即是 docker 镜像地址,如本人搭建的服务:

https://docker.ksg.us.kg 访问这个网址可查找镜像

配置镜像

修改文件 /etc/docker/daemon.json,如果不存在则需要手动创建

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
	"registry-mirrors": [
		"https://docker.ksg.us.kg",
		"https://docker.1panelproxy.com"
	]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

镜像列表

收集的公益镜像:

1
2
3
4
https://docker.526899.xyz
https://docker.1panelproxy.com
https://docker.888666222.xyz
https://docker.rainbond.cc

相似项目:https://github.com/muyiacc/cloudflare-docker-proxy


2025-05-18更新

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "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
}
页面浏览量Loading
网站总访客数:Loading
网站总访问量:Loading
使用 Hugo 构建
主题 StackJimmy 设计
-->