aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dcaegen2-collectors-datafile/dfc-containers-clean.sh
blob: 0e7c34ea792c23758f1913461f9a92391c95b6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Kill dfc and all simulator

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