Remove "docker attach" to container

This was causing a race condition and it would sometimes
get stuck or throw an error. It seems to work just fine without it,
thanks to the "docker wait".

(cherry picked from commit b7a63926afb3c3f6726dfffae4b48bae1cdb5929)