手贱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