aboutsummaryrefslogtreecommitdiffstats
path: root/plans
diff options
context:
space:
mode:
authoryanhuanwang <martin.c.yan@est.tech>2019-09-11 20:44:10 +0200
committerChengkai Yan <martin.c.yan@est.tech>2019-09-12 09:35:56 +0000
commit4805f96ca48e0dc4a9aad9466d116d5a0a2990da (patch)
tree7f240ddb67b412030870814003d850bc7118f51f /plans
parent31c7509eb8a6ea5498e78b0c326f60733c0a9791 (diff)
Update dfc env variables
Change-Id: Icc0620d18dc6b4e80ba8b17ca2b85444eedfe0e8 Issue-ID: DCAEGEN2-1702 Signed-off-by: Martin Yan <martin.c.yan@est.tech>
Diffstat (limited to 'plans')
-rw-r--r--plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh b/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh
index 0dc2af18..2c46439e 100644
--- a/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh
+++ b/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
-running_containers=$(docker ps --filter name=dfc_ -q)
-
+running_containers=$(docker ps --filter name=dfc_ -qa)
+running_images=$(docker images -q)
if [ -z "$running_containers" ]
then
@@ -10,5 +10,6 @@ else
echo "Stopping and removing containers"
docker stop $running_containers
docker rm $running_containers
+ docker rmi $running_images
fi