desktop-environment/docker/scripts/kill-all.sh
2019-03-17 09:45:18 +11:00

11 lines
335 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $0))/../..
# Export desktop environment shell configuration
eval "$(cat $REPO_ROOT/docker/scripts/environment.sh)"
# Remove all non desktop environment containers
docker ps -a | \
grep -v " $DESKTOP_ENVIRONMENT_CONTAINER_NAME" | \
grep -v "CONTAINER " | \
cut -b 1-20 | \
xargs docker rm -f