使用自定义docker加速地址下载镜像
1.例如加速地址为:
https://docker.1ms.run
2.配置docker加速地址
cat > /etc/docker/daemon.json <<EOF
> {"registry-mirrors": ["https://docker.1ms.run"]}
> EOF3.重启docker让加速地址生效
systemctl daemon-reload systemctl start docker.service
4.使用加速地址下载docker
docker pull docker.1ms.run/hello-world #拉取镜像 docker tag docker.1ms.run/hello-world hello-world #拉取镜像自定义文件名
5.可以使用该开源项目搭建docker加速项目:https://github.com/jonssonyan/cf-workers-proxy

甘公网安备62030002000100