How can I delete Docker's images?

后端 未结 17 1208
执笔经年
执笔经年 2020-11-29 14:27

I\'ve the following images:

alex@alexvps:~$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
&         


        
17条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 15:22

    First, remove all the containers using the following command

    sudo docker ps -a -q | xargs -n 1 -I {} sudo docker rm {}
    

    Then, remove the image by its ID using the following command

    sudo docker rmi 
    

提交回复
热议问题