From 4d273e1aef0b160050df9138578c7078198b2c79 Mon Sep 17 00:00:00 2001 From: lvsi <15239928381@163.com> Date: Sun, 21 Jul 2024 17:25:00 +0800 Subject: [PATCH] feat: Private cloud does not check whether the image exists --- .work/include/internal/dockerhub.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.work/include/internal/dockerhub.sh b/.work/include/internal/dockerhub.sh index 79f26ac..895bf14 100644 --- a/.work/include/internal/dockerhub.sh +++ b/.work/include/internal/dockerhub.sh @@ -19,6 +19,11 @@ cd $SPARROW_BASE_PATH # search image search() { + if ! [[ "${DOCKERHUB_REPO}" == *"docker.io"* ]]; then + print_warn "Private cloud does not check whether the image exists" + return 0 + fi + search_image=$1 remove_prefix_search_image=$(echo "$search_image" | sed 's/^docker.io\///') echo "search search_image=${search_image}, remove_prefix_search_image=${remove_prefix_search_image}"