Used for watching log output of docker containers and blocking until conditions met