- 删除非启动container
docker rm $(docker ps -a | grep -v Up | awk '{print $1}')
2 .删除冗余image
docker rmi $(docker images | grep \<none\> | awk '{print $3}')
docker rm $(docker ps -a | grep -v Up | awk '{print $1}')
2 .删除冗余image
docker rmi $(docker images | grep \<none\> | awk '{print $3}')