From ced79ffbdecee07db3c3387ea84d6a2421b7c477 Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Fri, 30 Dec 2022 11:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8-a=E6=8C=87=E4=BB=A4,?= =?UTF-8?q?=20=E6=9F=A5=E8=AF=A2=E5=AE=B9=E5=99=A8(=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=E5=B7=B2=E5=81=9C=E6=AD=A2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index cf9f0a6..3611eb1 100644 --- a/deploy.sh +++ b/deploy.sh @@ -6,7 +6,7 @@ d_app_version=latest d_app_port_inner=8080 d_app_port_export=31013 -if [[ -n $(docker ps -q -f "name=^${d_app_name}$") ]];then +if [[ -n $(docker ps -a -q -f "name=^${d_app_name}$") ]];then echo "${d_app_name} already started before ==> rm" docker rm -f ${d_app_name} echo "${d_app_name} rm success"