Merge branch 'main' of https://opencode.jsaix.cn/chenc/aix-docker
This commit is contained in:
commit
5e777d8f14
8
start.sh
8
start.sh
@ -1,7 +1,11 @@
|
|||||||
#/bin/sh
|
#/bin/sh
|
||||||
pushd /data
|
pushd /data
|
||||||
if ! command -v docker >/dev/null 2>&1 ; then
|
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
|
tar -zxvf docker-20.10.9.tgz
|
||||||
mv docker/* /usr/bin/
|
mv docker/* /usr/bin/
|
||||||
groupadd docker
|
groupadd docker
|
||||||
@ -33,7 +37,7 @@ systemctl enable docker
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose >/dev/null 2>&1 ; then
|
if ! command -v docker-compose >/dev/null 2>&1 ; then
|
||||||
curl -L https://gh-proxy.com/https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
curl -L https://mirror.ghproxy.com/https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||||
chmod +x /usr/local/bin/docker-compose
|
chmod +x /usr/local/bin/docker-compose
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user