Skip to content

Instantly share code, notes, and snippets.

Avatar

Spencer York dsyorkd

View GitHub Profile
@dsyorkd
dsyorkd / docker-destroy-all.sh
Created Nov 11, 2018 — forked from uahgit/docker-destroy-all.sh
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)