Skip to content

Instantly share code, notes, and snippets.

View rossmacarthur's full-sized avatar
🦀

Ross MacArthur rossmacarthur

🦀
  • Cape Town, South Africa, Earth, Milky Way
  • 18:02 (UTC +02:00)
View GitHub Profile
@rossmacarthur
rossmacarthur / docker-destroy-all.sh
Last active September 6, 2018 15:08 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/usr/bin/env bash
containers=$(docker ps -a -q)
# Stop all containers
if [ ! -n "$containers" ]; then
docker stop $containers
docker rm $containers
fi