simplify docker integration code and remove command pattern calls

Do we need to worry about orphaned wait calls?