blob: 0dc2af18de95c12cfa70e21c17facaef571fdb31 [file] [log] [blame]
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00001#!/usr/bin/env bash
2
TamasBakaie81736c2019-08-23 13:31:57 +00003running_containers=$(docker ps --filter name=dfc_ -q)
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00004
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00005
TamasBakaie81736c2019-08-23 13:31:57 +00006if [ -z "$running_containers" ]
7then
8 echo "No container requires termination"
9else
10 echo "Stopping and removing containers"
11 docker stop $running_containers
12 docker rm $running_containers
13fi
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +000014