Add function to check whether docker containers are actually ready