删除Docker镜像报错image is being used by stopped container

当删除某个镜像出现下面错误时:

[root@VM-0-5-centos ~]# docker rmi bf756fb1ae65
Error response from daemon: conflict: unable to delete bf756fb1ae65 (must be forced) - image is being used by stopped container 00890095fedc

处理方法:
删除Docker镜像报错image is being used by stopped container_第1张图片

docker ps -a
docker rm  ID(上面查出来你要删除的镜像ID)
 # 比如根据图 docker rm 8c5983186a24
docker images 
docker rmi ID(你要删除的镜像ID)
 # 比如根据图 docker rmi bf756fb1ae65

你可能感兴趣的:(docker,python)