【Bug解决】conflict: unable to delete XXX (must be forced) - image is referenced in multiple repositor

问题:

我想删除Docker镜像的时候报如下错误:

Error response from daemon: conflict: unable to delete b8dfe9ade316 (must be forced) - image is referenced in multiple repositories

在这里插入图片描述

什么原因呢?

看一下翻译:
【Bug解决】conflict: unable to delete XXX (must be forced) - image is referenced in multiple repositor_第1张图片
然后就发现两个镜像的id相同,如果用docker rmi [镜像id]它就不知道该如何删除
那么我们可以用:

docker rmi 镜像名:版本号

如我的截图,我想删除两个tomcat

docker rmi daocloud.io/library/tomcat:8.5.15-jre8
docker rmi tomcat:8.8.15

然后就删除成功了!
【Bug解决】conflict: unable to delete XXX (must be forced) - image is referenced in multiple repositor_第2张图片

如果文章对你有帮助,不要忘了给我点个赞吼( ̄▽ ̄)~
欢迎关注我的微信公众号:松鼠技术站

你可能感兴趣的:(Bug解决,docker,bug)