This is the proxy server for Docker Registry.
1. Through Docker config (as a mirror of docker.io)
Located in:
Operating System | Configuration File Path |
Linux, regular setup | /etc/docker/daemon.json |
Linux, rootless mode | ~/.config/docker/daemon.json |
Windows | C:\ProgramData\docker\config\daemon.json |
Windows with Docker Desktop | C:\Users\ |
Config:
{
"registry-mirrors": [
"http://hub.openode.xyz",
"https://mirror.gcr.io",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com"
]
}
Now, when attempting to pull an image, Docker will try to use the proxy first.
2. Explicitly specifying the address
docker pull hub.openode.xyz/library/alpine:latest
Mirror URL | Owner |
https://mirror.gcr.io | |
https://docker.mirrors.ustc.edu.cn | USTC |
https://hub-mirror.c.163.com | NetEase |
Это прокси-сервер для Docker Registry.
1. Через конфиг Docker (как зеркало docker.io)
Расположение:
Операционная система | Путь к файлу конфигурации |
Linux, обычная установка | /etc/docker/daemon.json |
Linux, rootless mode | ~/.config/docker/daemon.json |
Windows | C:\ProgramData\docker\config\daemon.json |
Windows с Docker Desktop | C:\Users\<Пользователь>\.docker\daemon.json |
Конфиг:
{
"registry-mirrors": [
"http://hub.openode.xyz",
"https://mirror.gcr.io",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com"
]
}
Теперь при попытке загрузки образа, Docker будет сначала пытаться использовать прокси.
2. Явное указание адреса
docker pull hub.openode.xyz/library/alpine:latest
URL зеркала | Владелец |
https://mirror.gcr.io | |
https://docker.mirrors.ustc.edu.cn | USTC |
https://hub-mirror.c.163.com | NetEase |