Honeynode Docker refactoring for Java11
[transportpce.git] / tests / Xtesting / DockerSims / stop_sims.sh
diff --git a/tests/Xtesting/DockerSims/stop_sims.sh b/tests/Xtesting/DockerSims/stop_sims.sh
new file mode 100755 (executable)
index 0000000..2d33930
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. $(dirname $0)/dockercmd_profile.sh
+
+stop_list=""
+for image in $IMAGE_LIST;do
+    image_name=`echo -n $image| cut -d: -f2`
+    stop_list=$stop_list" "$image_name
+done
+${DOCKER_CMD} container stop ${stop_list}