Commit dd6709fb authored by 谢伟坤's avatar 谢伟坤

add file

parents
# Harbor 镜像清理计划
本目录包含 Harbor 仓库(hub.wodcloud.com)的镜像扫描与清理统计文件。
## 文件说明
### clear.md — 全量清理统计报告
按以下 4 条规则对所有镜像进行分类统计:
| 规则 | 说明 |
|------|------|
| 规则1 | 从未被拉取的镜像(下载次数为0) |
| 规则2 | 相同基础版本但存在多个后缀变体(如 nginx:v1-aaa, nginx:v1-sss) |
| 规则3 | 创建时间在 2024/4/1 之前的镜像 |
| 规则4 | 无标签(untagged)镜像 |
文件末尾有去重汇总,一个镜像可能同时命中多条规则。
### image-level1.md — 优先级1:无标签镜像
无标签镜像没有任何引用价值,属于最安全的清理对象。
记录字段:项目、仓库、大小、创建时间、推送时间、Digest。
### image-level2.md — 优先级2:从未被拉取 + 2024/4/1之前创建
同时满足两个条件的镜像:
1. 从未被任何人拉取过
2. 创建时间早于 2024 年 4 月 1 日
这类镜像大概率已废弃,但有标签,清理前可按需二次确认。
记录字段:项目、仓库、标签、大小、创建时间、推送时间。
## 清理优先级
```
优先级1(image-level1.md)> 优先级2(image-level2.md)
```
建议先清理优先级1(无标签),再处理优先级2(未拉取的老镜像)。
## 数据来源
- Harbor 地址:hub.wodcloud.com
- API 版本:v2.0
- 扫描范围:全部 168 个项目
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment