Skip to content

Instantly share code, notes, and snippets.

🕹

Thomas Aglassinger roskakori

🕹
Block or report user

Report or block roskakori

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JeffBelback
JeffBelback / docker-destroy-all.sh
Last active Feb 16, 2020
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/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
You can’t perform that action at this time.