Last Updated: July 12, 2018
·
62
· mauz0r

My Favourites

https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers
Stop / remove all Docker containers

LXC DOCKER
One liner to stop / remove all of Docker containers:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

https://coderwall.com/p/h-qnwa/kill-all-running-vagrant-vms
Kill all running Vagrant VMs

TAGS COMMA SEPARATED
In case you want to indiscriminately destroy all of the running Vagrant VMs on your machine, you can run the following:

for i in vagrant global-status | grep virtualbox | awk '{ print $1 }' ; do vagrant destroy $i ; done