🔧 chore(docker): force NYIST mirror and remove interactive prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,7 +127,7 @@ if [ -z "$REPO_FILE" ]; then
|
||||
esac
|
||||
fi
|
||||
|
||||
mirror=''
|
||||
mirror='nyist'
|
||||
DRY_RUN=${DRY_RUN:-}
|
||||
REPO_ONLY=${REPO_ONLY:-0}
|
||||
NO_AUTOSTART=${NO_AUTOSTART:-0}
|
||||
|
||||
@@ -296,20 +296,9 @@ install_docker() {
|
||||
if command -v docker &>/dev/null; then
|
||||
info "Docker already installed ($(docker --version)), skipping"
|
||||
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 \
|
||||
-o /tmp/install-docker.sh
|
||||
sudo sh /tmp/install-docker.sh --mirror nyist
|
||||
;;
|
||||
*)
|
||||
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
|
||||
sudo sh /tmp/get-docker.sh
|
||||
;;
|
||||
esac
|
||||
curl -fsSL https://git.mitsea.com/FlintyLemming/scripts-public/raw/branch/main/linux-managements/install-docker.sh \
|
||||
-o /tmp/install-docker.sh
|
||||
sudo sh /tmp/install-docker.sh
|
||||
success "Docker installed"
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user