docker rmi cannot remove images, with: no such id

前端 未结 9 1330
感情败类
感情败类 2021-01-30 12:52

I have a lot of images. When I try to remove them with docker rmi

$ sudo docker rmi acd33a9490dc
Error response from daemon: No such id: 75ce1f6710b         


        
9条回答
  •  -上瘾入骨i
    2021-01-30 13:09

    You may also face this issue if you do not remove exited containers. You need to remove the exited container by doing this,

    sudo docker ps -a | grep Exit | awk '{print $1}' | sudo xargs docker rm 
    

    Then remove your image using

    sudo docker rmi 
    

提交回复
热议问题