From 9405101d4700f4273dcf66442e380733dc33db26 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 06 六月 2023 18:21:43 +0800
Subject: [PATCH] 分类树联调
---
Source/UBCS/service-stop.sh | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/Source/UBCS/service-stop.sh b/Source/UBCS/service-stop.sh
index 9f4cb9c..344967f 100644
--- a/Source/UBCS/service-stop.sh
+++ b/Source/UBCS/service-stop.sh
@@ -1,4 +1,5 @@
#鍋滄瀹瑰櫒杩愯鍜屽垹闄ゅ搴旈暅鍍忔柟娉�
+
stop(){
#瀹氫箟瀹瑰櫒鍜岄暅鍍忕殑鍚嶇О
imagesName=vci-ubcs/ubcs-
@@ -190,8 +191,18 @@
echo $containerName" is not up!!!"
fi
- #鍏朵粬鏈嶅姟闇�瑕侊紝璇疯嚜琛屾坊鍔�
+ imagesName=vci-ubcs/ubcs-applyjtcodeservice
+ containerName=ubcs-applyjtcodeservice
+ if [[ -n $(docker ps -q -f "name=$containerName") ]];then
+ echo $containerName"is up,we will stop and remove it !!!"
+ docker stop $containerName
+ docker rm $containerName
+ docker rmi $imagesName
+ else
+ echo $containerName" is not up!!!"
+ fi
+ #鍏朵粬鏈嶅姟闇�瑕侊紝璇疯嚜琛屾坊鍔�
}
stop
--
Gitblit v1.10.0