diff --git a/fix_gcc.sh b/fix_gcc.sh index 141cd66..546f5de 100644 --- a/fix_gcc.sh +++ b/fix_gcc.sh @@ -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."