for cont in $(docker ps --all -q) do docker rm -f $cont done for image in $(docker images -q) do docker rmi $image done docker volume prune -f