原文:docker中批量删除 tag为none的镜像
docker images|grep none|awk '{print $3}'|xargs docker rmi
先删除容器再删除镜像
问题: 当没有镜像需要删除时会报错。