设置:
为了加速镜像拉取,你可以使用以下命令设置 registry mirror:
sudo tee /etc/docker/daemon.json <<EOF
{
"registry-mirrors": ["https://hub.registry-mirrors.top"]
}
EOF
重启Docker使配置生效:
sudo systemctl daemon-reload
sudo systemctl restart docker
更多镜像:
源站:docker.io => 镜像: hub.registry-mirrors.top # docker hub 镜像仓库
源站:gcr.io => 镜像: gcr.registry-mirrors.top # Google Container Registry
源站:ghcr.io => 镜像: ghcr.registry-mirrors.top # GitHub Container Registry
源站:quay.io => 镜像: quay.registry-mirrors.top # Quay 镜像仓库
源站:registry.k8s.io => 镜像: k8s.registry-mirrors.top # Kubernetes 镜像仓库
源站:k8s.gcr.io => 镜像: k8sgcr.registry-mirrors.top # Google Kubernetes 镜像仓库
源站:nvcr.io => 镜像: 源站:nvcr.registry-mirrors.top # NVIDIA GPU 镜像仓库
源站:docker.elastic.co => 镜像: elastic.registry-mirrors.top # Elastic 镜像仓库
源站:mcr.microsoft.com => 镜像: mcr.registry-mirrors.top # Microsoft Container Registry
用法:
拉取镜像命令
docker pull library/alpine:latest
或者
docker pull hub.registry-mirrors.top/library/alpine:latest