docker-registry

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"
SJTUG Logo

SJTUG Zhiyuan Mirror

由 上海交通大学 Linux 用户组 (SJTUG) 维护

沪交 ICP 备 20180085