#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
Reference: http://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
Reference: http://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/