From 5a9459d831bbcd01db22ca6cf26521ab0e94c967 Mon Sep 17 00:00:00 2001 From: sunerpy Date: Thu, 24 Mar 2022 23:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E8=BF=90=E8=A1=8C'ezdown=20-D'?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E8=BF=90=E8=A1=8C'ezdown=20-P/R'=E4=BC=9A?= =?UTF-8?q?=E9=81=97=E7=95=99=E5=AE=B9=E5=99=A8=E5=AF=BC=E8=87=B4=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E8=BF=90=E8=A1=8C=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ezdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ezdown b/ezdown index 4bf61c2..bee93db 100755 --- a/ezdown +++ b/ezdown @@ -259,6 +259,7 @@ function get_ext_bin() { function get_sys_pkg() { [[ -f "$BASE/down/packages/chrony_xenial.tar.gz" ]] && { logger warn "system packages existed"; return 0; } + docker ps -a |grep temp_sys_pkg && { logger debug "remove existing container"; docker rm -f temp_sys_pkg; } logger info "downloading system packages kubeasz-sys-pkg:$SYS_PKG_VER" docker pull "easzlab/kubeasz-sys-pkg:$SYS_PKG_VER" && \ logger debug "run a temporary container" && \ @@ -272,6 +273,7 @@ function get_sys_pkg() { function get_harbor_offline_pkg() { [[ -f "$BASE/down/harbor-offline-installer-$HARBOR_VER.tgz" ]] && { logger warn "harbor-offline existed"; return 0; } + docker ps -a |grep temp_harbor && { logger debug "remove existing container"; docker rm -f temp_harbor; } logger info "downloading harbor-offline:$HARBOR_VER" docker pull "easzlab/harbor-offline:$HARBOR_VER" && \ logger debug "run a temporary container" && \