[#1]更新镜像构建脚本

This commit is contained in:
root
2025-09-16 03:44:05 +00:00
parent a520b2a33d
commit ee473439d5
2 changed files with 128 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ KIBANA_TAR="argus-kibana-latest.tar"
# 函数:检查镜像是否存在
check_image() {
local image_name="$1"
if docker images --format "table {{.Repository}}:{{.Tag}}" | grep -q "^$image_name$"; then
if docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "^$image_name$"; then
echo "✅ Image found: $image_name"
return 0
else