shell综合使用例子

shell综合使用例子

  • sudo docker image ls |grep none |awk ‘{print $3}’ | xargs -n 1 sudo docker rmi

删除 none标记的镜像,综合用了 grep awk xargs 工具。