我正在尝试删除图像,但是出现以下错误:
$ docker rmi -f
9ef344b4632a73d70e081a4b7345ba3ff6a333fcfb7fed0c9118881f3f582677
Error response from daemon: conflict: unable to delete 9ef344b4632a
(cannot be forced) - image has dependent child images
当我寻找相关图像时,它不会产生输出:
$ for i in $(docker images -a --quiet); do
> docker inspect $i | jq -r '.[].RootFS' | grep sha256:9ef344b4632a
> done
如何找到它抱怨的依赖图像?
答案 0 :(得分:1)
父图像ID存储在其他字段中。这是一种简单的搜索方法:
Process 'command 'C:\Users\Saleh\Downloads\Compressed\a\aaa\build-tools\28.0.1\aapt.exe'' finished with non-zero exit value 1