Docker拉取镜像失败,download failed after attempts 6 IO Timeout
报错如下:
$ docker pull halohub/halo:2.6.1
2.6.1: Pulling from halohub/halo
d1669123f281: Retrying in 1 second
2ec73b48ae40: Retrying in 1 second
64ed7897b25d: Retrying in 1 second
eefea741bc5a: Waiting
f2f24d94d687: Waiting
48c8491958ed: Waiting
3979576ccfec: Waiting
4f4fb700ef54: Waiting
dfee92811a23: Waiting
159e8e7d59d2: Waiting
error pulling image configuration: download failed after attempts=6: dial tcp 104.18.121.25:443: i/o timeout
解决方案
找到合适的源: https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
$ 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