Don't keep waiting to get the container IP address, break out of the loop once obtained.