Skip to content

Instantly share code, notes, and snippets.

View Ic3fr0g's full-sized avatar
🎯
Focusing

Mayur Hampiholi Ic3fr0g

🎯
Focusing
View GitHub Profile
@JeffBelback
JeffBelback / docker-destroy-all.sh
Last active June 12, 2025 15:08
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
containers=`docker ps -a -q`
if [ -n "$containers" ] ; then
docker stop $containers
fi
# Delete all containers
containers=`docker ps -a -q`
if [ -n "$containers" ]; then
docker rm -f -v $containers