This commit is contained in:
zino
2023-11-23 14:14:07 +01:00
parent 5709330af5
commit f158380306

View File

@@ -11,7 +11,7 @@ is_container_running() {
# Function to wait for the container to be fully up and running
wait_for_container() {
echo "Waiting for container ${CONTAINER_NAME} to be fully up and running..."
while ! docker exec "${CONTAINER_NAME}" /bin/sh -c "exit" &> /dev/null; do
while [ "$(docker inspect -f '{{.State.Running}}' "${CONTAINER_NAME}")" != "true" ]; do
sleep 1
done
echo "Container ${CONTAINER_NAME} is now up."