diff --git a/test-network/network.sh b/test-network/network.sh index e673855336..44608b7df4 100755 --- a/test-network/network.sh +++ b/test-network/network.sh @@ -29,7 +29,11 @@ trap "popd > /dev/null" EXIT . scripts/utils.sh : ${CONTAINER_CLI:="docker"} -: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"} +if command -v docker-compose > /dev/null 2>&1; then + : ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"} +else + : ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI} compose"} +fi infoln "Using ${CONTAINER_CLI} and ${CONTAINER_CLI_COMPOSE}" # Obtain CONTAINER_IDS and remove them