Docker: 无法从损坏的拉取中删除中间图像

Docker: Cannot delete intermediate images from a broken pull

图片损坏,无法进一步拉取。而且我无法移除或删除它

我做了什么:

- stopped all containers ("docker ps -a" shows empty list)
- cleaned everything with "docker system prune -a")
- "docker image ls -a" shows an empty list

当我基于 PHP7.3 提取内容时,出现此错误:

$ sudo docker pull wordpress
Using default tag: latest
latest: Pulling from library/wordpress
bc51dd8edc1b: Already exists 
a3224e2c3a89: Already exists 
be7a066df88f: Already exists 
bfdf741d72a9: Already exists 
a9e612a5f04c: Already exists 
c026d8d0e8cb: Already exists 
d94096c4941c: Already exists 
5a16031a7587: Already exists 
0cf1daf9efc0: Already exists 
b202acb13a6c: Already exists 
907001e30880: Already exists 
2e4b329c80b2: Already exists 
cd1ec92e7164: Already exists 
8cba435f5ca6: Already exists 
42d9ff86311d: Extracting [==================================================>]   16.7MB/16.7MB
4907cef4e3ab: Download complete 
d9efb2f24248: Download complete 
8301b0ae2103: Download complete 
a9e295ae3552: Download complete 
cd1a22f91cdc: Download complete 
f81677d558c1: Download complete 
failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/081694acd847bf622c20fa32b7cebad1ca46d4848cd49c336812fc03d60457c5/merged: too many levels of symbolic links

我在想"already exists":如何删除它们?? (我已经尝试过 prune -a ;见上文)

我希望我可以删除所有 (100%) 图片 -> 这样我就可以开始新的下载了。

(背景:硬件有内存错误。也许这就是现在出现此错误的原因。硬件和磁盘现在都可以。)

尝试:

  • 停止docker服务

  • 删除/var/lib/docker

  • 启动docker服务