Skip to content

Commit 70faa0d

Browse files
committed
update
1 parent f0a8252 commit 70faa0d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

container-manager/src/gen/scripts/docker-down.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ if [[ -z $1 ]]; then
77
echo "Missing argument"
88
echo "Usage: docker-down.sh PROFILE"
99
echo "Profile:"
10-
echo " machine1 - subnet nodes"
11-
echo " services - relayer, backend, frontend"
10+
echo " machine1, machine2, ... (as defined in docker-compose.yml)"
1211
exit
1312
fi
1413

15-
docker compose --profile $1 down
14+
which docker-compose
15+
if [[ $? != 0 ]]; then
16+
shopt -s expand_aliases
17+
alias docker-compose='docker compose'
18+
fi
19+
20+
docker-compose --profile $1 down
1621

container-manager/src/gen/scripts/docker-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [[ -z $1 ]]; then
66
echo "Missing argument"
77
echo "Usage: docker-up.sh PROFILE"
88
echo "Profile:"
9-
echo " machine1"
9+
echo " machine1, machine2, ... (as defined in docker-compose.yml)"
1010
exit
1111
fi
1212

0 commit comments

Comments
 (0)