Add script to stop and remove Docker containers

main
Ian Mancini 5 years ago
parent 5790bfcc72
commit 76edde3344

@ -0,0 +1,9 @@
#!/bin/sh
if (( $EUID != 0 )); then
echo "Should be run as root"
exit 1
fi
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Loading…
Cancel
Save