Gradle check command failing on Ubuntu 24.04 LTS

Describe the issue:
I am trying to run all tests on my local system using ./gradlew check command. It can be related to docker compose.
I am running this command in Ubuntu 24.04 LTS inside WSL2.
Is anybody else facing the same issue?