From 3a3e18988d447ff637df77b4bb16a2a1be525e14 Mon Sep 17 00:00:00 2001 From: Chenc Date: Thu, 23 Nov 2023 07:32:19 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'start.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 8e044de..5ee53a5 100644 --- a/start.sh +++ b/start.sh @@ -1,7 +1,11 @@ #/bin/sh pushd /data if ! command -v docker >/dev/null 2>&1 ; then - wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/docker-20.10.9.tgz + wget --no-check-certificate https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/docker-20.10.9.tgz + if [ $? -ne 0 ]; then + echo "Download docker failed" + exit 1 + fi tar -zxvf docker-20.10.9.tgz mv docker/* /usr/bin/ groupadd docker