Added countdown time to docker-stack-rm.

Added check for compose plugin and legacy docker-compose.
This commit is contained in:
2023-06-16 18:13:11 -05:00
parent de73b968bc
commit f5d8b3422a
2 changed files with 22 additions and 4 deletions
+2 -2
View File
@@ -18,5 +18,5 @@ RUNNING_STACK=$( echo $PARENT_DIR | cut -d " " -f1 )
# if we found a running stack, bring it down.
echo "Removing stack $RUNNING_STACK..."
docker stack rm $RUNNING_STACK
echo "Waiting for 30 seconds for services to terminate..."
sleep 30
WAIT=30
for i in `seq $WAIT -1 1` ; do echo -ne "\rWaiting $i seconds for services to terminate..." ; sleep 1 ; done