OS版本:
Linux localhost.localdomain 4.12.13-300.fc26.x86_64 #1 SMP Thu Sep 14 16:00:38 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
码头版
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:05:40 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:06:58 2017
OS/Arch: linux/amd64
Experimental: false`
我没有任何容器:
$docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
和我要删除的两个图像:
$docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
gcc 7.1.0 855a4f4d1cd9 2 months ago 1.64GB
hello-world latest 1815c82652c0 3 months ago 1.84kB
我的尝试:
$docker rmi -f gcc:7.1.0
Error response from daemon: No such image: gcc:7.1.0
$docker rmi -f 855a4f4d1cd9
Error response from daemon: reference does not exist
$docker rmi -f hello-world:latest
Error response from daemon: No such image: hello-world:latest
$docker rmi -f 1815c82652c0
Error response from daemon: reference does not exist44
原因是什么,如何删除这些图像?
最佳答案
这意味着您的泊坞窗状态已损坏,您需要清除完整状态
原文链接:https://www.f2er.com/docker/436801.htmlsudo service docker stop
sudo rm -rf /var/lib/docker
sudo service docker start
这将启动docker fresh而不存在任何现有数据.尝试在此之后删除图像,看看是否一切正常.如果没有,那么就有一些问题需要加以研究