How can I delete Docker's images?

后端 未结 17 1226
执笔经年
执笔经年 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 14:57

    The most compact version of a command to remove all untagged images is:

    docker rmi $(docker images | grep "^" | awk '{print $"3"}')
    

提交回复
热议问题