ref: http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html
-
Stopped Containers
docker rm $(docker ps -a -q)
-
Untagged Images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
ref: http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html
Stopped Containers
docker rm $(docker ps -a -q)
Untagged Images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")