为了加速镜像拉取,你可以使用以下命令设置镜像加速 registry mirror:+
sudo tee /etc/docker/daemon.json << EOF
{
"registry-mirrors": ["https://docker-proxy.101012.xyz"]
}
EOF
sudo systemctl restart docker #请务必重启docker服务
本镜像站点只是为了演示,随时关闭,建议花5分钟自己搭建一个 https://www.zhoujie218.top/archives/2626.html #这是详细教程
为了避免 Worker 用量耗尽,你可以手动 pull 镜像然后 re-tag 之后 push 至本地镜像仓库:
docker pull docker-proxy.101012.xyz/library/alpine:latest # 拉取 library 镜像
docker pull docker-proxy.101012.xyz/coredns/coredns:latest # 拉取 coredns 镜像