docker 删除镜像出错

docker删除image报错:
在这里插入图片描述

Error response from daemon: conflict: unable to delete e8ea4b876ba6 (must be forced) - image is being used by stopped container 9190a496f939

目前来看,每个镜像启动一次,都会生成一个容器,要想删除这个镜像的前提是:需要将镜像所生成的所有容器删掉;我这里一个镜像启动了多次,所有先要将所有的容器删掉,才可以删掉镜像。
ps:初学,不喜勿喷,欢迎探讨

猜你喜欢

转载自blog.csdn.net/wang78699425/article/details/85162903