Remove all container and images

Remove all container and images

To remove all container and images, just type

#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

 

%d bloggers like this: