Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabio AM fabioam

View GitHub Profile
View docker_remove_networks.txt
docker network rm $(docker network ls | grep "foo" | awk '/ / { print $1 }')
@fabioam
fabioam / docker-destroy-all.sh
Created Feb 5, 2018 — forked from JeffBelback/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)