docker rmi all

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
原文地址:https://www.cnblogs.com/jvava/p/4556569.html