部署自己的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
5
https://docker.526899.xyz
https://dk.aur.us.kg
https://docker.1panelproxy.com
https://docker.888666222.xyz
https://docker.rainbond.cc

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

页面浏览量Loading
网站总访客数:Loading
网站总访问量:Loading
使用 Hugo 构建
主题 StackJimmy 设计
-->