From a3b90cc53a09d8d72f4cce39514d655fbac22ce7 Mon Sep 17 00:00:00 2001 From: thananJayan Date: Sat, 6 Jan 2024 15:59:57 +0000 Subject: [PATCH] Updated the wai for exit sh file --- wait_for_exit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wait_for_exit.sh b/wait_for_exit.sh index 97888f5..68c4d4e 100644 --- a/wait_for_exit.sh +++ b/wait_for_exit.sh @@ -8,9 +8,10 @@ then echo "$0: Pass only a single container name: $@" exit 1 else +#many ways to find the docker container status until [ "`docker inspect -f {{.State.Running}} $1`" == "false" ]; do echo "The container $1 is in UP status " sleep 3s; done; echo "The container $1 is in EXITED status " -fi \ No newline at end of file +fi