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

    xiaoxiao2022-07-02  108

    具体错误:Error response from daemon: conflict: unable to delete f2e2f7b8308b (must be forced) - image is being used by stopped container 51d010d3b755

    错误解析:这是由于要删除的目标镜像中有容器存在,故无法删除镜像

    解决办法:先删除镜像中的容器,再删除该镜像。

    docker rm 容器id docker rmi 镜像id

     

    最新回复(0)