镜像加速说明

PV
|
UV

个人自建+整理,请勿随意分享,导致资源滥用无法使用

使用方法①

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


sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": [
                        "https://dh.123415.xyz",
                        "https://docker-mirrors.mjjman.com",
                        "https://docker.soft.cm",
                        "https://do.nark.eu.org",
                        "https://hub.nat.tf"
                      ]
}
EOF

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

sudo systemctl daemon-reload

重启 Docker 服务

sudo systemctl restart docker

使用方法②

直接拉取:

原拉取镜像命令


docker pull library/alpine:latest

加速拉取镜像命令


docker pull dh.123415.xyz/library/alpine:latest
Copyright ©2024
|
Powerd By cloudfare
|
联系方式 Telegram