停止全部容器
docker stop $(docker ps -a -q)
删除全部容器
docker rm $(docker ps -a -q)
删除全部images
docker rmi $(docker images -q)
删除untagged images,也就是那些id为的image
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")