scripts/docker-clean

11 lines
167 B
Plaintext
Raw Normal View History

#!/bin/sh
# Stop everything
docker stop $(docker ps -a -q)
# Remove all containers
docker rm $(docker ps -a -q)
# Remove all imagesa
docker rmi $(docker images -q)