You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
495 B
8 lines
495 B
#!/usr/bin/bash
|
|
echo "版本信息可查看 https://dn-dao-github-mirror.daocloud.io/docker/compose/releases/"
|
|
LEVEL=${DOCKER_COMPOSE_LEVEL:-1.20.1}
|
|
curl -L https://get.daocloud.io/docker/compose/releases/download/${LEVEL}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && chmod a+x /usr/local/bin/docker-compose
|
|
|
|
if [ -z $DOCKER_COMPOSE_LEVEL ];then
|
|
echo "采用默认版本1.20.1,如需要指定版本,可以在终端执行 export DOCKER_COMPOSE_LEVEL=版本"
|
|
fi |