Docker镜像加速

使用方法①

原拉取镜像命令:

docker pull library/alpine:latest

加速拉取镜像命令:

docker pull hub.noki.eu.org/library/alpine:latest

使用方法②

为了加速镜像拉取,使用以下命令设置registry mirror

sudo tee /etc/docker/daemon.json <<EOF
{
    "registry-mirrors": ["https://hub.noki.eu.org"]
}
EOF

重载systemd管理守护进程配置文件

sudo systemctl daemon-reload

重启 Docker 服务

sudo systemctl restart docker
Copyright ©2026 Libs