Added countdown time to docker-stack-rm.
Added check for compose plugin and legacy docker-compose.
This commit is contained in:
1 parent
de73b968bc
commit
f5d8b3422a
2 files changed
+22
-4
No files matched your search
+2
-2
@@ -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
|
||||
Reference in new issue
Block a user