Updated to use mapped ports for waiting
Updated to use mapped ports for waiting

We're seeing an issue with the direct mode when using Docker Desktop.

Autoscaler/autoscaler,Autoscaler/autoscaler,Autoscaler/autoscaler