giufus
12/14/2016 - 1:51 PM

remove all docker container

remove all docker container

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


#sudo docker ps -a | sed -n '1!p' | cut -d' ' -f 1 | xargs sudo docker rm {} \;