Dokcer-compose sometimes fails to start containers

Hello guys,
I’m running tests in jenkins and I’m launching containers with docker-compose. So basically I’m running 8 tests at time and each one launches 6 containers.
Sometimes tests pass with success other times it fails to start the containers. Docker-compose logs for each container just logs “Attaching to” Do you know what could be causing this problem? Could it be related with networks? Because I create networks for every single test using bridge driver.