Skip to content

Commit

Permalink
add support for docker compose v2 (fix #730)
Browse files Browse the repository at this point in the history
Signed-off-by: uniform64 <[email protected]>
  • Loading branch information
uniform641 committed Nov 25, 2023
1 parent c0a0104 commit eaa7ee1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test-network/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaa7ee1

Please sign in to comment.