Merge pull request #95 from DaoCloud/update-readme

Update README.md
This commit is contained in:
Kay Yan 2022-03-09 12:18:36 +08:00 committed by GitHub
commit a718f9ea7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,12 @@
[![Sync](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-sync-badge.svg)](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-sync.log) [![Sync](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-sync-badge.svg)](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-sync.log)
[![Deep Sync](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-deep-sync-badge.svg)](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-deep-sync.log) [![Deep Sync](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-deep-sync-badge.svg)](https://github.com/DaoCloud/public-image-mirror/raw/gh-pages/daocloud-deep-sync.log)
Sync: 是 tag 的同步率 只要 tag 存在就是同步的
Deep sync: 是 tag 内容同步率 (如 latest 这种 tag 会更新, tag 存在并不一定是最新的, 在这属于未同步)
每天大约同步 1k 的 tag
## 背景 ## 背景
很多镜像都在国外。比如 gcr 。国内下载很慢,需要加速。 很多镜像都在国外。比如 gcr 。国内下载很慢,需要加速。
@ -18,15 +24,16 @@
docker run -d -P docker.m.daocloud.io/nginx docker run -d -P docker.m.daocloud.io/nginx
``` ```
## 使用方法 ## 使用方法
支持的镜像仓库 的 *前缀替换* 就可以使用。比如: 支持的镜像仓库 的 *前缀替换* 就可以使用。比如:
k8s.gcr.io/coredns/coredns => k8s-gcr.m.daocloud.io/coredns/coredns k8s.gcr.io/coredns/coredns => k8s-gcr.m.daocloud.io/coredns/coredns
或者增加前缀。比如:
k8s.gcr.io/coredns/coredns => m.daocloud.io/k8s.gcr.io/coredns/coredns
## 支持的镜像源 ## 支持的镜像源
[domain.txt](domain.txt) [domain.txt](domain.txt)