Docker pull unexpected EOF Retrying in 10 seconds

手贱docker rmi ,docker rm掉了服务器上的镜像和容器

再docker pull就发生了标题的报错

Retrying in 10 seconds

unexpected EOF

[root@wx-fin-dev-test-178-206 ~]# docker pull 172.21.178.206:5000/web/fin-ins-api-dev:fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4
fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4: Pulling from web/fin-ins-api-dev
e7c96db7181b: Downloading [==================================================>]  2.757MB/2.757MB
f910a506b6cb: Downloading [==================================================>]     238B/238B
c2274a1a0e27: Downloading [==================================================>]  70.73MB/70.73MB
036e42642d02: Download complete 
951e6339e7e7: Download complete 
aafd2bb8d8aa: Download complete 
8a277eb952e2: Download complete 
120113b0d27d: Download complete 
a8f589d56918: Download complete 
fbd6738e35bb: Download complete 
f2b96e77cbbe: Download complete 
e0337d8184e8: Download complete 
b4609e3e1e4f: Download complete 
ef58134a5ea1: Download complete 
037e1b8f458d: Download complete 
unexpected EOF

尝试了网上的方法都没有成功

1.修改deamon.json文件 (docker pull拉取镜像失败,报unexpected EOF解决方法_小麻花-CSDN博客

2.delete_docker_registry_image(Docker pull “unexpected EOF” - 程序员大本营

------------------------------------------

最终的解决方式:

1.参考docker pull拉取本地私有仓库镜像_choutan7894的博客-CSDN博客 修改deamon.json:

{
"registry-mirrors": ["http://172.21.178.206:5000"],
"insecure-registries": ["172.21.178.206:5000"]
}
 

2.在网上找到包含e7c96db7181b、f910a506b6cb、c2274a1a0e27这几个无法下载的分片的镜像,直接docker pull下来

百度找到这个镜像包含e7c96db7181b、f910a506b6cb、c2274a1a0e27这几个分片的镜像:
[root@wx-fin-dev-test-178-206 ~]# docker pull b3log/solo
Using default tag: latest
latest: Pulling from b3log/solo
e7c96db7181b: Pull complete 
f910a506b6cb: Pull complete 
c2274a1a0e27: Pull complete 
4477480f63ac: Pull complete 
7fdcf74f3734: Pull complete 
edb9c3b1e251: Pull complete 
Digest: sha256:e76b4b7cac25b179c700f9061e537330d0e4b83ae368371a86fccfc79a27ad2b
Status: Downloaded newer image for b3log/solo:latest
docker.io/b3log/solo:latest

再次尝试pull发现可以了

[root@wx-fin-dev-test-178-206 ~]# docker pull 172.21.178.206:5000/web/fin-ins-api-dev:fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4
fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4: Pulling from web/fin-ins-api-dev
e7c96db7181b: Already exists 
f910a506b6cb: Already exists 
c2274a1a0e27: Already exists 
036e42642d02: Pull complete 
951e6339e7e7: Pull complete 
aafd2bb8d8aa: Pull complete 
8a277eb952e2: Pull complete 
120113b0d27d: Pull complete 
a8f589d56918: Pull complete 
fbd6738e35bb: Pull complete 
f2b96e77cbbe: Pull complete 
e0337d8184e8: Pull complete 
b4609e3e1e4f: Pull complete 
ef58134a5ea1: Pull complete 
037e1b8f458d: Pull complete 
Digest: sha256:0f42733c266f2081e284ca6d04525527ae20beeb20b9e3b97e1b74a64e2b832b
Status: Downloaded newer image for 172.21.178.206:5000/web/fin-ins-api-dev:fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4
172.21.178.206:5000/web/fin-ins-api-dev:fb31d5eb1de493bf8f6c7ec84515d4a69f810dc4
 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值