镜像
caution
- Aliyun 提供非常多的镜像,但质量堪忧
- docker latest tag 可能不同步,并且没办法触发同步
- linux os 的包可能同步延迟几天
- npm 需要手动同步
- tuna~=aliyun ~= ustc - 大多是一样的
- 国内大学镜像 可能 特殊时期 直接关停
- 偶尔出现网络维护,一维护就是 2-3 天
国内镜像站点
高校镜像
官方
site | for |
---|---|
https://mirrors.kernel.org/ | Linux |
https://mirrors.edge.kernel.org/pub/linux/kernel/ | Linux Source |
https://mirrors.alpinelinux.org/ | Alpine Linux Mirror |
https://dl-cdn.alpinelinux.org/alpine/ | Alpine Linux Repo |
https://www.debian.org/mirror/list.zh-cn.html | Debian |
- mirrors.kernel.org = mirrors.edge.kernel.org
jsdelivr
- https://fastly.jsdelivr.net
- https://cnd.jsdelivr.net
- https://jsdelivr.wener.me
- https://github.com/54ayao/Chinajsdelivr
- jsd.cdn.zzko.cn
Github
Apache
NPM
- https://registry.npmjs.org
- http://r.cnpmjs.org
- http://registry.npm.taobao.org
- https://mirrors.sjtug.sjtu.edu.cn/npm-registry
- https://repo.huaweicloud.com/repository/npm
- https://mirrors.huaweicloud.com/repository/npm
chromedriver_cdnurl=https://repo.huaweicloud.com/chromedriver
disturl=https://repo.huaweicloud.com/nodejs
electron_mirror=https://repo.huaweicloud.com/electron/
operadriver_cdnurl=https://repo.huaweicloud.com/operadriver
phantomjs_cdnurl=https://repo.huaweicloud.com/phantomjs
python_mirror=https://repo.huaweicloud.com/python
sass_binary_site=https://repo.huaweicloud.com/node-sass
chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
disturl=https://npm.taobao.org/dist
electron_mirror=http://cdn.npm.taobao.org/dist/electron
fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents
operadriver_cdnurl=http://cdn.npm.taobao.org/dist/operadriver
phantomjs_cdnurl=http://cdn.npm.taobao.org/dist/phantomjs
sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass
Docker Image
- docker.io
- docker.m.daocloud.io
https://fogjl973.mirror.aliyuncs.comhttps://8x40wsit.mirror.aliyuncs.com- https://registry-1.docker.io
- production.cloudflare.docker.com
- 偶尔通
- production.cloudflare.docker.com
- https://hub-mirror.c.163.com
https://docker.mirrors.ustc.edu.cnhttps://f1361db2.m.daocloud.iohttps://reg-mirror.qiniu.com- 参考
- gcr.io
- gcr.m.daocloud.io
- k8s.gcr.io -> gcr.io/google-containers
- k8s-gcr.m.daocloud.io
- registry.aliyuncs.com/google_containers
googlecontainersmirror - docker hub
- registry.k8s.io
- k8s.m.daocloud.io
- https://github.com/kubernetes/registry.k8s.io
- quay.io
- quay.m.daocloud.io
- quay-mirror.qiniu.com
- quay.mirrors.ustc.edu.cn
- public.ecr.aws
- 参考
- Docker Hub 镜像加速器 https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
docker pull nginx:alpine
# 镜像
docker pull docker.mirrors.ustc.edu.cn/library/nginx:alpine
docker pull docker.mirrors.ustc.edu.cn/wener/base
# 南京大学
docker pull docker.nju.edu.cn/wener/base:latest
tee /etc/docker/daemon.json <<- 'EOF'
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://dockercr.wener.me",
"https://docker.mirrors.ustc.edu.cn"
]
}
EOF
mirrors:
docker.io:
endpoint:
- https://dockercr.wener.me
- https://docker.m.daocloud.io
- https://registry-1.docker.io
ghcr.io:
endpoint:
- https://ghcr.wener.me
- https://ghcr.io
registry.k8s.io:
endpoint:
- https://k8scr.wener.me
- https://registry.k8s.io
gcr.io:
endpoint:
- https://gcr.wener.me
- https://gcr.m.daocloud.io
- https://gcr.io
quay.io:
endpoint:
- https://quaycr.wener.me
- https://quay.m.daocloud.io
- https://quay.io
HomeBrew
- brew.git -
$(brew --repo)
- homebrew-core.git -
$(brew --repo)/Library/Taps/homebrew/homebrew-core
- HOMEBREW_BOTTLE_DOMAIN
- 其他
GOPROXY
- 默认 proxy.golang.org
- https://proxy.golang.com.cn
- https://mirrors.aliyun.com/goproxy
Mirrorss
AlpineLinux
- https://mirrors.alpinelinux.org/
- https://git.alpinelinux.org/cgit/aports/tree/main/alpine-mirrors/mirrors.yaml
- 官方
- aliyun
- 参考
# 基于更新时间排序
curl -s https://mirrors.aliyun.com/alpine/MIRRORS.txt | xargs -n1 -I {} sh -c 'echo $(curl -s {}/last-updated) {}' | sort -n
# 同步
# 建议参数 -og --chown=1000:1000 - 覆盖 uid:gid - 默认 100:101
# rsync 服务建议使用官方 rsync.alpinelinux.org - 国内镜像要嘛不支持要嘛偶尔有问题
rsync --archive --update --hard-links --timeout=600 --progress rsync://rsync.alpinelinux.org/alpine/ /alpine/mirror
PIP
pyproject.toml
[[tool.poetry.source]]
name = "aliyun"
url = "https://mirrors.aliyun.com/pypi/simple"
priority = "primary"