aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh
blob: 0dc2af18de95c12cfa70e21c17facaef571fdb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

running_containers=$(docker ps --filter name=dfc_ -q)


if [ -z "$running_containers" ]
then
    echo "No container requires termination"
else
    echo "Stopping and removing containers"
    docker stop $running_containers
    docker rm $running_containers
fi