Docker Mahcine refactoring: Reorder code in executors/docker/machine
What does this MR do?
As described in #27139 (closed).
Why was this MR needed?
Please read &4680 (closed) and #27139 (closed) for context.
What's the best way to test this MR?
What are the relevant issue numbers?
Closes #27139 (closed)
Edited by Tomasz Maczukin