🔧 chore(docker): force NYIST mirror and remove interactive prompt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
FlintyLemming
2026-02-28 17:54:02 +08:00
parent ee752d4988
commit 72fefab22d
2 changed files with 4 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ if [ -z "$REPO_FILE" ]; then
esac esac
fi fi
mirror='' mirror='nyist'
DRY_RUN=${DRY_RUN:-} DRY_RUN=${DRY_RUN:-}
REPO_ONLY=${REPO_ONLY:-0} REPO_ONLY=${REPO_ONLY:-0}
NO_AUTOSTART=${NO_AUTOSTART:-0} NO_AUTOSTART=${NO_AUTOSTART:-0}

View File

@@ -296,20 +296,9 @@ install_docker() {
if command -v docker &>/dev/null; then if command -v docker &>/dev/null; then
info "Docker already installed ($(docker --version)), skipping" info "Docker already installed ($(docker --version)), skipping"
else else
echo ""
echo -e "Use a ${BOLD}domestic mirror${NC} for Docker installation? ${YELLOW}(recommended in China)${NC}"
read -rp "Use mirror? [y/N] " use_mirror
case "$use_mirror" in
[Yy]*)
curl -fsSL https://git.mitsea.com/FlintyLemming/scripts-public/raw/branch/main/linux-managements/install-docker.sh \ curl -fsSL https://git.mitsea.com/FlintyLemming/scripts-public/raw/branch/main/linux-managements/install-docker.sh \
-o /tmp/install-docker.sh -o /tmp/install-docker.sh
sudo sh /tmp/install-docker.sh --mirror nyist sudo sh /tmp/install-docker.sh
;;
*)
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
sudo sh /tmp/get-docker.sh
;;
esac
success "Docker installed" success "Docker installed"
fi fi
;; ;;