docker删除镜像Error response from daemon: conflict: unable to remove repository reference

Docker无法删除images,由于是依赖container。

1.进入root权限   sudo su

2. 列出所有运行或没有运行的镜像  docker  ps  -a

docker删除镜像Error response from daemon: conflict: unable to remove repository reference

3、停止container,这样才能够删除其中的images:

docker stop $(docker ps -a -q)

如果想要删除所有container的话再加一个指令:

docker rm $(docker ps -a -q)
狠心把容器都删除掉了,因为光停止还是不能删除镜像。

4.查看当前有些什么images    docker images

5.相关容器关闭后,删除对应的images,通过image的id来指定删除谁

docker rmi ID

docker删除镜像Error response from daemon: conflict: unable to remove repository reference

要删除全部image的话    docker rmi $(docker images -q)

docker删除镜像Error response from daemon: conflict: unable to remove repository reference

docker删除镜像Error response from daemon: conflict: unable to remove repository reference

 

上一篇:Error response from daemon: conflict: unable to delete a2f2e369e78e (cannot be forced) - image has dependent child images


下一篇:Error response from daemon:###unable to delete ### (must be forced) - image is being used by stopped