docker清理none image
概述
本地出现none image是由于构建过程异常导致残存的image,占用空间,看着不舒服
解决
#docker images --filter
the currently supported filters are:
dangling (boolean - true or false) //none
label (label=<key> or label=<key>=<value>)
before (<image-name>[:<tag>], <image id> or <image@digest>) - filter images created before given id or references
since (<image-name>[:<tag>], <image id> or <image@digest>) - filter images created since given id or references
docker rmi $(docker images -f 'dangling=true' -q)