镜像加速说明

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


tee /etc/docker/daemon.json <<EOF
{
    "registry-mirrors": ["https://docker.nmmm.de"]
}
EOF
# 然后重启docker
systemctl daemon-reload
systemctl restart docker

用法:

原拉取镜像命令


docker pull library/alpine:latest

加速拉取镜像命令


docker pull docker.nmmm.de/library/alpine:latest