Skip to content

Commit 004fba8

Browse files
committed
fix the failure scenario
1 parent 65e8c3c commit 004fba8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/docker-in-docker/install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DOCKER_VERSION="${VERSION:-"latest"}" # The Docker/Moby Engine + CLI should match in version
1212
USE_MOBY="${MOBY:-"true"}"
1313
MOBY_BUILDX_VERSION="${MOBYBUILDXVERSION:-"latest"}"
14-
DOCKER_DASH_COMPOSE_VERSION="${DOCKERDASHCOMPOSEVERSION:-"latest"}" #v1, v2 or none
14+
DOCKER_DASH_COMPOSE_VERSION="${DOCKERDASHCOMPOSEVERSION:-"v2"}" #v1, v2 or none
1515
AZURE_DNS_AUTO_DETECTION="${AZUREDNSAUTODETECTION:-"true"}"
1616
DOCKER_DEFAULT_ADDRESS_POOL="${DOCKERDEFAULTADDRESSPOOL:-""}"
1717
USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
@@ -371,8 +371,7 @@ if [ "${DOCKER_DASH_COMPOSE_VERSION}" != "none" ]; then
371371
else
372372
compose_version=${DOCKER_DASH_COMPOSE_VERSION#v}
373373
docker_compose_url="https://github.com/docker/compose"
374-
# find_version_from_git_tags compose_version "$docker_compose_url" "tags/v"
375-
compose_version=2.35.0
374+
find_version_from_git_tags compose_version "$docker_compose_url" "tags/v"
376375
echo "(*) Installing docker-compose ${compose_version}..."
377376
curl -fsSL "https://github.com/docker/compose/releases/download/v${compose_version}/docker-compose-linux-${target_compose_arch}" -o ${docker_compose_path} || {
378377
if [[ $DOCKER_DASH_COMPOSE_VERSION == "latest" ]]; then

0 commit comments

Comments
 (0)