@huabuyu233/edgit 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -76,6 +76,17 @@ edgit get https://github.com/VSCodium/vscodium/releases/download/1.135.06055/VSC
|
|
|
76
76
|
edgit get https://github.com/xxx/yyy/releases/download/v1.0/tool.zip out.zip # 指定输出文件名
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
+
Docker Hub 镜像加速拉取:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
edgit docker pull nginx:1.27
|
|
83
|
+
edgit docker pull redis redis:7-alpine # 可多个
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- 仅加速 Docker Hub 镜像(ghcr.io 等其他 registry 原样透传)
|
|
87
|
+
- 不修改 daemon.json、不重启 docker;拉取成功自动 `docker tag` 回原名,`docker run nginx` 直接可用
|
|
88
|
+
- 全部镜像站失败自动回落 Docker Hub 直连
|
|
89
|
+
|
|
79
90
|
非 github.com 地址自动透传给 `git clone`,不走镜像:
|
|
80
91
|
|
|
81
92
|
```bash
|
|
@@ -116,6 +127,20 @@ edgit mirrors remove gh-proxy.com # 删除
|
|
|
116
127
|
|
|
117
128
|
> 高校镜像(TUNA/USTC)只镜像 Release 文件和特定仓库,不支持任意仓库的 git clone,因此仅参与 Release 下载(`edgit get`);clone 按 1→3→8 中支持 clone 的镜像探测。镜像站列表会随时间失效,可通过 `mirrors add` / `remove` 自行维护。
|
|
118
129
|
|
|
130
|
+
内置 Docker Hub 加速站(`edgit docker pull` 专用,按权威性排序):
|
|
131
|
+
|
|
132
|
+
| 优先级 | 镜像站 | 说明 |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| 1 | docker.m.daocloud.io | DaoCloud 老牌厂商 |
|
|
135
|
+
| 2 | docker.1ms.run | 毫秒镜像,金融级 SLA |
|
|
136
|
+
| 3 | docker.xuanyuan.me | 轩辕镜像免费版(限流) |
|
|
137
|
+
| 4 | docker.1panel.live | 1Panel 出品(限中国地区) |
|
|
138
|
+
| 5 | dockerproxy.net | 社区老牌 |
|
|
139
|
+
| 6 | hub.rat.dev | 社区镜像 |
|
|
140
|
+
| 7 | proxy.vvvv.ee | 社区镜像 |
|
|
141
|
+
|
|
142
|
+
> 高校 Docker Hub 镜像(TUNA/USTC/上海交大)均已停服或下架,故不收录。
|
|
143
|
+
|
|
119
144
|
## 工作原理
|
|
120
145
|
|
|
121
146
|
```
|
package/dist/edgit-darwin-amd64
CHANGED
|
Binary file
|
package/dist/edgit-darwin-arm64
CHANGED
|
Binary file
|
package/dist/edgit-linux-amd64
CHANGED
|
Binary file
|
package/dist/edgit-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|