error pulling image configuration: download failed after attempts=6: dial tcp 59.188.250.54
报错如下:
解决方案
第一种
$ export REPO=docker.m.daocloud.io
$ docker pull ${REPO}/halohub/halo:2.6.1
2.6.1: Pulling from halohub/halo
d1669123f281: Pull complete
2ec73b48ae40: Pull complete
64ed7897b25d: Pull complete
eefea741bc5a: Pull complete
f2f24d94d687: Pull complete
48c8491958ed: Pull complete
3979576ccfec: Pull complete
4f4fb700ef54: Pull complete
dfee92811a23: Pull complete
159e8e7d59d2: Pull complete
Digest: sha256:8303d0580bfc0e1aea100b4dee3232fbea0e9a2245cdd100999f4fc87bea22e3
Status: Downloaded newer image for docker.m.daocloud.io/halohub/halo:2.6.1
docker.m.daocloud.io/halohub/halo:2.6.1
最后更新一下tag:
docker tag b1fea9deec18 halohub/halo:2.6.1
第二种方法:
vim /etc/docker/daemon.json
修改为 :一下内容,然后保存并退出
{
"registry-mirrors": [
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://hub.uuuadc.top",
"https://docker.anyhub.us.kg",
"https://dockerhub.jobcher.com",
"https://dockerhub.icu",
"https://docker.ckyl.me",
"https://docker.awsl9527.cn",
"https://mirror.baidubce.com"
]
}