Update README.md

This commit is contained in:
Shiming Zhang 2021-11-18 18:19:51 +08:00
parent fd71e61af6
commit 6867da26c8
1 changed files with 3 additions and 17 deletions

View File

@ -1,6 +1,9 @@
# public-image-mirror
[![Sync](https://github.com/DaoCloud/public-image-mirror/actions/workflows/sync.yml/badge.svg)](https://github.com/DaoCloud/public-image-mirror/actions/workflows/sync.yml)
[![Sync](https://gist.github.com/wzshiming/6e1f67a5184f93cefc5b2c670a5813e5/raw/daocloud-sync-badge.svg)](https://gist.github.com/wzshiming/6e1f67a5184f93cefc5b2c670a5813e5/raw/daocloud-sync.log)
[![Deep Sync](https://github.com/DaoCloud/public-image-mirror/actions/workflows/deep-sync.yml/badge.svg)](https://github.com/DaoCloud/public-image-mirror/actions/workflows/deep-sync.yml)
[![Deep Sync](https://gist.github.com/wzshiming/6e1f67a5184f93cefc5b2c670a5813e5/raw/daocloud-deep-sync-badge.svg)](https://gist.github.com/wzshiming/6e1f67a5184f93cefc5b2c670a5813e5/raw/daocloud-deep-sync.log)
## 背景
@ -16,7 +19,6 @@
```
docker run -d -P docker.m.daocloud.io/nginx
```
@ -47,22 +49,6 @@ k8s.gcr.io/coredns/coredns => k8s-gcr.m.daocloud.io/coredns/coredns
提 PR , 修改 mirror.txt 即可。例如 [PR#1](https://github.com/DaoCloud/public-image-mirror/pull/1/)
## 安装运行
安装 skopeo.
```
yum install skopeo --nobest
```
运行同步程序
```
export REGISTRY_PASSWORD=password #镜像仓库密码
python scripts/sync-to-jp.py
```
## 最佳实践
* 通过 加速 安装 kubeadm
``` bash