docker-registry
January 1, 0001
htfy96
mirror-help
docker-registry 源是 Docker Hub 的反向代理,可以加速docker pull
等需要下载镜像的命令。
Docker 使用方法:
编辑或新建/etc/docker/daemon.json
文件,向其中添加registry-mirrors
项,使最终配置类似:
{
"registry-mirrors": ["https://docker.mirrors.sjtug.sjtu.edu.cn"]
}
Podman 使用方法:
新建/etc/containers/registries.conf.d/050-sjtug-docker-mirror.conf
文件(或在/etc/containers/registries.conf
文件末尾),写入以下内容:
unqualified-search-registries = ["docker.io"]
[[registry]]
location = "docker.io"
[[registry.mirror]]
location = "docker.mirrors.sjtug.sjtu.edu.cn"