docker rmi cannot remove images, with: no such id

前端 未结 9 1363
感情败类
感情败类 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条回答
  •  旧巷少年郎
    2021-01-30 13:11

    Put in your terminal:

    docker ps -a
    
    CONTAINER ID | IMAGE ......................NAMES
    
    d25c0cd9725a |acd33a9490dc ................focused_einstein
    

    You can see your IMAGEID in the column IMAGE. Get the CONTAINER ID an remove the container:

    docker rm d25c0cd9725a
    

    And now you can remove the image:

    docker rmi acd33a9490dc
    

提交回复
热议问题