Use docker client ContainerWait instead of waitForContainer
Description
Inside of the runner code base we have waitForContainer that checks the container status and it's exit code, by using sleep and container inspect. In the latest version of github.com/docker/docker a method ContainerWait provides the same behavior, which we should use instead.
Proposal
Use ContainerWait instead of waitForContainer
Links to related issues and merge requests / references
Wait for #3488 (closed) to be closed to have the latest version of the docker client.
/cc @tmaczukin @ayufan
Edited by Steve Xuereb