异常:Error response from daemon: conflict: unable to delete 6fa48e047721 (cannot be forced) - image ha

Posted yfacesclub

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异常:Error response from daemon: conflict: unable to delete 6fa48e047721 (cannot be forced) - image ha相关的知识,希望对你有一定的参考价值。

在删除镜像之前要先用 docker rm 删掉依赖于这个镜像的所有容器(哪怕是已经停止的容器),否则无法删除该镜像。

停止容器
# docker stop $(docker ps -a | grep "Exited" | awk ‘{print $1 }‘)
删除容器
# docker rm $(docker ps -a | grep "Exited" | awk ‘{print $1 }‘) 
# docker rm -v $(docker ps -aq -f status=exited)

删除镜像
# docker rmi $(docker images | grep "none" | awk ‘{print $3}‘)

以上是关于异常:Error response from daemon: conflict: unable to delete 6fa48e047721 (cannot be forced) - image ha的主要内容,如果未能解决你的问题,请参考以下文章

Error response from daemon: driver failed... Error: failed to start containers...

Error response from daemon: Container is not running

Docker执行错误报错--Error response from daemon: No command specified

docker search 问题(Error response from daemon)

Docker login harbor Error response from daemon: Get https

Docker Error response from daemon,Docker 换镜像