summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwan <m.schwan@phytec.de>2019-10-11 13:10:45 (GMT)
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-10-11 13:34:46 (GMT)
commitd768103a296fdf862e0c4fd993f39ee1e87e5cb7 (patch)
tree9ce8409464877a3458eb3fceb87ed1ae88d13584
parent95de2ba5747777a091e30618aa93ad57e23d2f7f (diff)
downloadmeta-yogurt-d768103a296fdf862e0c4fd993f39ee1e87e5cb7.zip
meta-yogurt-d768103a296fdf862e0c4fd993f39ee1e87e5cb7.tar.bz2
aikit-docker-images: Stop containers before starting
Containers cannot be started if there is a running one with the same name. Signed-off-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-examples/aikit-docker-images/aikit-docker-images/aikit-docker-images.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-examples/aikit-docker-images/aikit-docker-images/aikit-docker-images.py b/recipes-examples/aikit-docker-images/aikit-docker-images/aikit-docker-images.py
index a37844d..652a2eb 100644
--- a/recipes-examples/aikit-docker-images/aikit-docker-images/aikit-docker-images.py
+++ b/recipes-examples/aikit-docker-images/aikit-docker-images/aikit-docker-images.py
@@ -57,6 +57,7 @@ def run_containers():
'weston-start && sleep 1 && aidemo-customvision-demo -x'], check=True)
def start(args):
+ stop_containers()
create_network()
run_containers()
return 0