我正在使用Ubuntu20.04.1 LTS。码头版本19.03.12,构建48a66213fe。
当我收到这个错误时,我正试图用docker pull mongo来获取蒙戈图像:
failed to register layer: Error processing tar file(exit status 1): open /var/lib/dpkg/info/gcc-8-base:amd64.list: invalid argument
我已经卸载了码头并重新安装了。
我安装了gcc版本9和8。我试着卸载gcc 9号,只在系统上留下8个,但是我一直在出错。
我认为问题是因为他在错误中提到的文件丢失了,但是我去了它的文件夹,文件就在那里。
我的终端:
theneverchosen@TheNeverChosen:~$ docker pull mongo
Using default tag: latest
latest: Pulling from library/mongo
f08d8e2a3ba1: Extracting 26.7MB/26.7MB
3baa9cb2483b: Download complete
94e5ff4c0b15: Download complete
1860925334f9: Download complete
9d42806c06e6: Download complete
31a9fd218257: Download complete
5bd6e3f73ab9: Download complete
f6ae7a64936b: Download complete
80fde2cb25c5: Download complete
1bec62fe62fc: Download complete
2cf4970a1653: Download complete
39fac3226e16: Download complete
86bca9c64faf: Download complete
failed to register layer: Error processing tar file(exit status 1): open /var/lib/dpkg/info/gcc-8-base:amd64.list: invalid argument
theneverchosen@TheNeverChosen:~$ docker --version
Docker version 19.03.12, build 48a66213fe
theneverchosen@TheNeverChosen:~$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
theneverchosen@TheNeverChosen:~$ gcc-8 --version
gcc-8 (Ubuntu 8.4.0-3ubuntu2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.发布于 2020-08-25 05:28:02
供日后参考:
这个问题并不是mongo特有的,如果您收到一个错误,上面写着Error processing tar file,这可能对您有帮助。
事业:
在这种情况下,有一个破坏层的mongo映像,导致解压缩失败。
Fix:
手动删除图像层。如果您不知道它是哪一层,也不知道如何进行,请执行以下操作:
/var/lib/docker (如果您将码头的东西存储在另一个地方,您需要清理它)。发布于 2021-04-25 15:50:39
我解决了这个问题读到这个信息:
https://docs.docker.com/engine/security/rootless/#docker-pull-errors
我看了这个链接:
01/E 75728/html/ol-docker-userns-renap.html
并增加这些文件(/etc/subuid和/etc/subgid)中所包含的值和重新启动(未提及),如此链接所建议的:
https://ubuntu.com/blog/custom-user-mappings-in-lxd-containers
我唯一注意到的是,我的存储磁盘路径被从"DATA“重命名为"DATA1”,我不知道为什么会发生这种情况。数据是不能从具有典型的“拒绝权限”消息的终端上访问的,从GUI文件浏览器中可以看到它始终是“数据”。但是,嘿,我终于能够画出我想要的形象,从此我就可以幸福地继续我的生活了。:D!
https://stackoverflow.com/questions/63559895
复制相似问题