[#1]更新镜像构建脚本
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user