Migrate waitForContainer to Docker API WaitForContainer

Overview

For some cases, we need to wait for a container to start and we have our own implementation of this. The Docker API provides this out of the box with WaitForContaienr which does the same thing we our implementation does.

Proposal

Use WaitForContainer from the Docker API instead of relying on our solution.