image is being used by stopped container

前端 未结 9 431
自闭症患者
自闭症患者 2021-01-30 05:08

I am trying to delete a docker container by this command:

docker rmi 

Obviously, I have replaced the Image-Id by the Id I get u

9条回答
  •  广开言路
    2021-01-30 05:14

    You can also use --force , -f Force removal of the image

    If you use the -f flag and specify the image’s short or long ID, then this command untags and removes all images that match the specified ID.

      docker rmi -f  
    

    Note: this command removes images being used by containers.

提交回复
热议问题