最近由于众所周知的原因,docker images拉取不下来。
Docker 最近拉取镜像时报错 error pulling image configuration: download failed after attempts=6: read tcp 192.168.10.62:32842->104.16.101.215:443: read: connection reset by peer
执行命令拉取镜像:
docker pull minio/minio
error pulling image configuration: download failed after attempts=6: read tcp 192.168.10.62:32842->104.16.101.215:443: read: connection reset by peer
出现以上的报错。
将 Docker 的默认镜像源换成国内的镜像源。国内镜像源通常响应速度更快,更加稳定。
vim /etc/docker/daemon.json
加入国内镜像配置信息
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://ox288s4f.mirror.aliyuncs.com",
"https://mirror.ccs.tencentyun.com",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.baidubce.com"
]
}
重启 Docker 服务
sudo systemctl daemon-reload
sudo systemctl restart docker
拉取就成功了
[root@rootserver ~]# docker pull minio/minio
Using default tag: latest
latest: Pulling from minio/minio
5f328c14e09d: Pull complete
d6d6074cf24b: Pull complete
6f64584d3b12: Pull complete
42d1a425c567: Pull complete
017431e769d5: Pull complete
d0adbaa170ad: Pull complete
8f60c6b8cdaf: Pull complete
b9dfe2047b93: Pull complete
Digest: sha256:6f23072e3e222e64fe6f86b31a7f7aca971e5129e55cbccef649b109b8e651a1
Status: Downloaded newer image for minio/minio:latest
docker.io/minio/minio:latest
[root@rootserver ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
minio/minio latest 3ea8e9c58833 Less than a second ago 161MB
本文由
xujun20200616
原创发布于
阳光沙滩
,未经作者授权,禁止转载