更新 'start.sh'

This commit is contained in:
Chenc 2023-11-23 07:32:19 +00:00
parent c6c12b04f1
commit 3a3e18988d

View File

@ -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