From ec60a7bd20648ce31364d5668fc28bc62de11933 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Mon, 27 Jul 2026 11:02:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=8C=85iso=E9=95=9C=E5=83=8F,?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E6=A3=80=E6=9F=A5docker=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- x86-64_iso.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x86-64_iso.sh b/x86-64_iso.sh index 8d204b0..859f320 100644 --- a/x86-64_iso.sh +++ b/x86-64_iso.sh @@ -7,6 +7,13 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" cd ${SCRIPT_DIR} +# 如果docker没有安装 +if ! command -v docker &> /dev/null; then + curl -fsSL https://get.docker.com | bash # 使用官方脚本安装docker + success "Docker 安装完成" +fi + + # 如果img-installer文件夹不存在, 下载img-installer if [ ! -d "${SCRIPT_DIR}/img-installer" ]; then git clone https://github.com/wukongdaily/img-installer.git