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 {} \;