Last Updated: February 25, 2016
·
427
· lamoanh

Remove all docker images, containers

Run as sudo privilege:

docker stop $(docker ps -a | awk '{print $1}' | grep -v CONTAINER)
docker rm $(docker ps -a | awk '{print $1}' | grep -v CONTAINER)
docker rmi $(docker images -a | awk '{print $3}' | grep -v IMAGE)