docker-scripts/docker-destroy-all

6 lines
84 B
Bash
Executable File

#!/bin/sh
CONTAINER=$(docker ps -a -q)
docker stop $CONTAINER
docker rm $CONTAINER