镜像加速说明

PV
|
UV

用法一:加速镜像拉取,使用以下命令设置registry mirror


sudo tee /etc/docker/daemon.json <<EOF
{
    "registry-mirrors": ["https://docker.ikun.day"]
}
EOF

sudo systemctl daemon-reload
sudo systemctl restart docker

用法二:单次加速拉取

原拉取镜像命令:


docker pull library/alpine:latest

加速拉取镜像命令:


docker pull docker.ikun.day/library/alpine:latest