modifed
This commit is contained in:
@@ -11,7 +11,7 @@ is_container_running() {
|
|||||||
# Function to wait for the container to be fully up and running
|
# Function to wait for the container to be fully up and running
|
||||||
wait_for_container() {
|
wait_for_container() {
|
||||||
echo "Waiting for container ${CONTAINER_NAME} to be fully up and running..."
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
echo "Container ${CONTAINER_NAME} is now up."
|
echo "Container ${CONTAINER_NAME} is now up."
|
||||||
|
|||||||
Reference in New Issue
Block a user