From 8713ea91be530a56911ca03b55dc9509eafac035 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 29 Nov 2021 20:49:21 +0200 Subject: [PATCH] pull --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index ec531de..8548873 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -116,6 +116,12 @@ fi create_dockerfile () { + docker pull $IMAGE_origin << ANSWERS +yes +yes +yes +ANSWERS + . $Wdir/ROOT_PASSWORD if [ -d "$Wdir/project" ]; then # ----------------------------------------------- @@ -420,6 +426,7 @@ clear_all () #docker ps -a | grep "_registry_" | awk '{print $1}' | xargs docker container rm || true # remove for microservices docker ps -a | grep "${IMAGE_local}_workerservice_" | awk '{print $1}' | xargs docker container rm || true docker ps -a | grep "${IMAGE_local}_masterservice_" | awk '{print $1}' | xargs docker container rm || true + docker rmi $IMAGE_local -f } down_all () @@ -484,13 +491,6 @@ up_master () printf "\\n" docker-compose rm -f -s -v - docker rmi $IMAGE_local -f - clear_all - docker pull $IMAGE_origin << ANSWERS -yes -yes -yes -ANSWERS docker-compose up --build --remove-orphans --force-recreate -d masterservice << ANSWERS yes